Merge branch 'dev-sws' into dev-yxl

v1.0.0
于肖磊 2024-09-11 18:08:40 +08:00
commit 2b383b9e96
2 changed files with 11 additions and 12 deletions

View File

@ -358,7 +358,7 @@ const filter_node = (value: string, data: any): boolean => {
};
const type_data = ref<Tree[]>([]);
const all_tree = {
id: '',
id: 'all',
pid: '',
name: '全部',
items: [],
@ -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();
}
}, 1000);
//
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();
}
});
});

View File

@ -50,6 +50,7 @@ const on_load_img = () => {
};
// containerRef
const w_scale1 = computed(() => {
// 使
return container_ref_h.value / img_width.value;
});
const h_scale1 = computed(() => {