From 50af0d309ad6b0e783924dcba3746d686e81f781 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 20 十一月 2024 10:19:09 +0800
Subject: [PATCH] 模型参数导入模板

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

diff --git a/src/views/model/mpk/file/MpkRun.vue b/src/views/model/mpk/file/MpkRun.vue
index d3ff1c9..a99ae2b 100644
--- a/src/views/model/mpk/file/MpkRun.vue
+++ b/src/views/model/mpk/file/MpkRun.vue
@@ -36,7 +36,7 @@
       <el-divider content-position="left">模型参数信息</el-divider>
       <el-row :gutter="20">
         <el-col :span="2" style="margin-bottom: 10px;margin-left: 20px">
-          <el-button tag="a" href="/template/模型参数导入模板.xlsx" download="模型参数导入模板.xlsx" style="text-decoration: none;" type="primary" size="small" link>模板下载</el-button>
+          <el-button tag="a" :href="staticDir + '/template/模型参数导入模板.xlsx'" download="模型参数导入模板.xlsx" style="text-decoration: none;" type="primary" size="small" link>模板下载</el-button>
         </el-col>
         <el-col :span="2" style="margin-bottom: 10px;">
           <el-upload
@@ -116,6 +116,7 @@
   import * as MpkApi from '@/api/model/mpk/mpk'
   import {FormRules} from "element-plus";
   import {getAccessToken, getTenantId} from "@/utils/auth";
+  const staticDir = ref(import.meta.env.VITE_STATIC_DIR)
 
   const { t } = useI18n() // 国际化
   const message = useMessage() // 消息弹窗

--
Gitblit v1.9.3