From 40c9c5fdade2f998a9f5c6c6513bb806bc9c3ab7 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Wed, 15 Jan 2025 10:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E5=90=8Esv?= =?UTF-8?q?g=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/index.vue | 7 +++---- frontend/src/views/home/tabs/dashboard.vue | 8 ++++---- frontend/src/views/home/tabs/model.vue | 6 +++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 7dc2583..4d6b18e 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -49,22 +49,21 @@ const modeList = [ { name: "模拟式模式", code:"模拟式", - subName: "未启用模拟式检测计划", - img: "/src/assets/images/dashboard/1.svg", + img: new URL('/src/assets/images/dashboard/1.svg', import.meta.url).href, isActive: true, }, { name: "数字式模式", code:"数字式", subName: "启用数字检测计划", - img: "/src/assets/images/dashboard/2.svg", + img: new URL('/src/assets/images/dashboard/2.svg', import.meta.url).href, isActive: false, }, { name: "比对式模式", code:"比对式", subName: "启用比对式检测计划", - img: "/src/assets/images/dashboard/3.svg", + img: new URL('/src/assets/images/dashboard/3.svg', import.meta.url).href, isActive: false, }, ]; diff --git a/frontend/src/views/home/tabs/dashboard.vue b/frontend/src/views/home/tabs/dashboard.vue index 663453d..208ef4f 100644 --- a/frontend/src/views/home/tabs/dashboard.vue +++ b/frontend/src/views/home/tabs/dashboard.vue @@ -174,25 +174,25 @@ const tabsList = ref([ { label: '设备检测', value: 0, - img: '/src/assets/images/plan/static/1.svg', + img: new URL('/src/assets/images/plan/static/1.svg', import.meta.url).href, checked: true, }, { label: '报告生成', value: 3, - img: '/src/assets/images/plan/static/3.svg', + img: new URL('/src/assets/images/plan/static/3.svg', import.meta.url).href, checked: false, }, { label: '设备归档', value: 4, - img: '/src/assets/images/plan/static/4.svg', + img: new URL('/src/assets/images/plan/static/4.svg', import.meta.url).href, checked: false, }, { label: '数据操作', value: 5, - img: '/src/assets/images/plan/static/5.svg', + img: new URL('/src/assets/images/plan/static/5.svg', import.meta.url).href, checked: false, }, ]) diff --git a/frontend/src/views/home/tabs/model.vue b/frontend/src/views/home/tabs/model.vue index f3ae36c..f4b165c 100644 --- a/frontend/src/views/home/tabs/model.vue +++ b/frontend/src/views/home/tabs/model.vue @@ -62,21 +62,21 @@ const modeList = [ name: "模拟式模块", code: "模拟式", subName: "未启用模拟式检测计划", - img: "/src/assets/images/dashboard/1.svg", + img: new URL('/src/assets/images/dashboard/1.svg', import.meta.url).href, isActive: true, }, { name: "数字式模块", code: "数字式", subName: "启用数字检测计划", - img: "/src/assets/images/dashboard/2.svg", + img: new URL('/src/assets/images/dashboard/2.svg', import.meta.url).href, isActive: false, }, { name: "比对式模块", code: "比对式", subName: "启用比对式检测计划", - img: "/src/assets/images/dashboard/3.svg", + img: new URL('/src/assets/images/dashboard/3.svg', import.meta.url).href, isActive: false, }, ];