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 type_data = ref<Tree[]>([]);
const all_tree = { const all_tree = {
id: '', id: 'all',
pid: '', pid: '',
name: '全部', name: '全部',
items: [], items: [],
@ -717,17 +717,15 @@ onMounted(() => {
// //
document.addEventListener('click', video_show); document.addEventListener('click', video_show);
nextTick(() => { nextTick(() => {
setTimeout(() => { //
// if (common_store.common.attachment_category.length > 0) {
if (common_store.common.attachment_category.length > 0) { type_data_list.value = common_store.common.attachment_category;
type_data_list.value = common_store.common.attachment_category; type_data.value = [all_tree, ...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_category(common_store.common.attachment_category); upload_store.set_is_upload_api(true);
upload_store.set_is_upload_api(true); } else {
} else { get_tree();
get_tree(); }
}
}, 1000);
}); });
}); });

View File

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