From 553fb1f736c137feb356e4a22f5d9b2a7358bb11 Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 12 Jan 2023 14:01:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AF=BC=E5=85=A5=E5=AD=A6=E5=91=98?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddLevelImportStu.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/AddLevelImportStu.vue b/src/components/drawers/AddLevelImportStu.vue index 68425c9e..49f3d6c0 100644 --- a/src/components/drawers/AddLevelImportStu.vue +++ b/src/components/drawers/AddLevelImportStu.vue @@ -18,7 +18,7 @@
请下载
- 模板 + 模板
,按要求填写数据并导入
@@ -221,7 +221,11 @@ export default { setup(props, ctx) { const store = useStore(); const state = reactive({ - template: process.env.VUE_APP_FILE_PATH + process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE, + locationHref: + location.href.indexOf("http://") !== -1 + ? "http://111.231.196.214:12016/" + : location.href.slice(0, location.href.indexOf("/m")) + "/upload/", + template: process.env.VUE_APP_UP_LOAD_STUDENT_TEMPLATE, importStudent: process.env.VUE_APP_BASE_API + "/admin/student/importStudent", timers: "", // 定时器,用于清空定时器使用