From 5c475d3ac8ee98713e0f0962dd9464daccfb9eb1 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期四, 28 十一月 2024 18:16:07 +0800
Subject: [PATCH] 模型参数改为output

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

diff --git a/src/views/model/mpk/icon/index.vue b/src/views/model/mpk/icon/index.vue
index 8d0f95f..2f97330 100644
--- a/src/views/model/mpk/icon/index.vue
+++ b/src/views/model/mpk/icon/index.vue
@@ -50,7 +50,7 @@
       <el-table-column prop="iconDesc" label="描述"/>
       <el-table-column align="center" label="图标" prop="icon" width="100">
         <template #default="scope">
-          <img :src="'/SimtreeUnitImage/' + scope.row.iconName" class="mpk-icon-list" :alt=" scope.row.iconDesc" />
+          <img :src="staticDir + 'SimtreeUnitImage/' + scope.row.iconName" class="mpk-icon-list" :alt=" scope.row.iconDesc" />
         </template>
       </el-table-column>
       <el-table-column prop="sort" label="排序"/>
@@ -91,6 +91,8 @@
 
 defineOptions({name: 'MpkIcon'})
 
+const staticDir = ref(import.meta.env.VITE_STATIC_DIR)
+
 const message = useMessage() // 消息弹窗
 const {t} = useI18n() // 国际化
 

--
Gitblit v1.9.3