From 963828e3b5070928470cb8e79ae8c051a53d926d Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 20 十一月 2024 10:05:19 +0800
Subject: [PATCH] VITE_STATIC_DIR

---
 src/views/model/mpk/file/MpkForm.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/model/mpk/file/MpkForm.vue b/src/views/model/mpk/file/MpkForm.vue
index 6466eaf..102765c 100644
--- a/src/views/model/mpk/file/MpkForm.vue
+++ b/src/views/model/mpk/file/MpkForm.vue
@@ -116,7 +116,7 @@
                       float: right;
                       color: var(--el-text-color-secondary);
                       font-size: 13px;">
-                    <img :src="'/SimtreeUnitImage/' + item.iconName" style="height: 24px;" :alt=" item.iconDesc" />
+                    <img :src="staticDir + 'SimtreeUnitImage/' + item.iconName" style="height: 24px;" :alt=" item.iconDesc" />
                   </span>
                 </el-option>
               </el-select>
@@ -268,6 +268,8 @@
   const route = useRoute() // 路由
   const router = useRouter();
 
+  const staticDir = ref(import.meta.env.VITE_STATIC_DIR)
+
   const treeData = ref([])
   const iconList = ref([] as MpkIconApi.MpkIconVO)
   const pkgNameList = ref([] as MpkPackApi.MpkPackVO)

--
Gitblit v1.9.3