From 5019ed6016b47221321bf395cd102dc4b51b4724 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 05 二月 2024 09:40:43 +0800
Subject: [PATCH] Mr.Shi

---
 platform/src/components/common/ImportWindow.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/platform/src/components/common/ImportWindow.vue b/platform/src/components/common/ImportWindow.vue
index 8e05ddb..45f714e 100644
--- a/platform/src/components/common/ImportWindow.vue
+++ b/platform/src/components/common/ImportWindow.vue
@@ -102,7 +102,7 @@
      */
     confirm () {
       if (this.form.file == null) {
-        this.$tip.warning('璇烽�夋嫨鏂囦欢')
+        this.$message.warning('璇烽�夋嫨鏂囦欢')
         return
       }
       this.isWorking = true
@@ -114,12 +114,12 @@
         }
       })
         .then(() => {
-          this.$tip.success('瀵煎叆鎴愬姛')
+          this.$message.success('瀵煎叆鎴愬姛')
           this.visible = false
           this.$emit('success')
         })
         .catch(e => {
-          this.$tip.apiFailed(e)
+          this.$message.error(e)
         })
         .finally(() => {
           this.isWorking = false
@@ -137,10 +137,11 @@
     downloadTemplate () {
       const link = document.createElement('a')
       link.setAttribute('download', this.templateName) //涓嬭浇鐨勬枃浠跺悕
-      console.log(`${window.location.origin}${process.env.VUE_APP_CONTEXT_PATH}${this.templatePath}`);
+      // console.log(`window.location.origin`, window.location.origin);
+      // console.log(`process.env.VUE_APP_CONTEXT_PATH`, process.env.VUE_APP_CONTEXT_PATH);
+      // console.log(`this.templatePath`, this.templatePath);
       link.href = `${window.location.origin}${process.env.VUE_APP_CONTEXT_PATH}${this.templatePath}`  //鏂囦欢url
       link.click()
-      // this.$emit('download')
     },
     /**
      * 鏂囦欢涓婁紶鍓嶅瓨鍌ㄤ笂浼犵殑鏂囦欢

--
Gitblit v1.9.3