From ce0bffa202d89483c13c47e8454ea29a08f1fb07 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 11 Sep 2024 17:56:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-hot-zone/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/model-hot-zone/index.vue b/src/components/model-hot-zone/index.vue index 84520d61..ea3e0ef0 100644 --- a/src/components/model-hot-zone/index.vue +++ b/src/components/model-hot-zone/index.vue @@ -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(() => { From 607520c271e03a197f02f76e6f494ff998e9a92e Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 11 Sep 2024 18:06:05 +0800 Subject: [PATCH 2/3] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/upload/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue index 64386cb2..b8b96bcf 100644 --- a/src/components/common/upload/index.vue +++ b/src/components/common/upload/index.vue @@ -358,7 +358,7 @@ const filter_node = (value: string, data: any): boolean => { }; const type_data = ref([]); const all_tree = { - id: '', + id: 'all', pid: '', name: '全部', items: [], @@ -727,7 +727,7 @@ onMounted(() => { } else { get_tree(); } - }, 1000); + }, 300); }); }); From 418f65ed1fed6fdb133c3ed1e377168953e70883 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 11 Sep 2024 18:06:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/upload/index.vue | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue index b8b96bcf..49f876e9 100644 --- a/src/components/common/upload/index.vue +++ b/src/components/common/upload/index.vue @@ -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(); + } }); });