1.代码优化

v1.0.0
sws 2024-09-11 18:06:58 +08:00
parent 607520c271
commit 418f65ed1f
1 changed files with 9 additions and 11 deletions

View File

@ -717,17 +717,15 @@ onMounted(() => {
//
document.addEventListener('click', video_show);
nextTick(() => {
setTimeout(() => {
//
if (common_store.common.attachment_category.length > 0) {
type_data_list.value = common_store.common.attachment_category;
type_data.value = [all_tree, ...common_store.common.attachment_category];
upload_store.set_category(common_store.common.attachment_category);
upload_store.set_is_upload_api(true);
} else {
get_tree();
}
}, 300);
//
if (common_store.common.attachment_category.length > 0) {
type_data_list.value = common_store.common.attachment_category;
type_data.value = [all_tree, ...common_store.common.attachment_category];
upload_store.set_category(common_store.common.attachment_category);
upload_store.set_is_upload_api(true);
} else {
get_tree();
}
});
});