From f4e6a890da2884777281031a9c736c7659c2a74a Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期四, 02 一月 2025 14:20:04 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/src/views/model/mpk/icon/index.vue b/src/views/model/mpk/icon/index.vue
index 8d0f95f..e9c3654 100644
--- a/src/views/model/mpk/icon/index.vue
+++ b/src/views/model/mpk/icon/index.vue
@@ -7,6 +7,7 @@
       ref="queryFormRef"
       :inline="true"
       label-width="68px"
+      @submit.prevent
     >
       <el-form-item label="模型名称" prop="iconName">
         <el-input
@@ -50,7 +51,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 +92,8 @@
 
 defineOptions({name: 'MpkIcon'})
 
+const staticDir = ref(import.meta.env.VITE_STATIC_DIR)
+
 const message = useMessage() // 消息弹窗
 const {t} = useI18n() // 国际化
 

--
Gitblit v1.9.3