diff --git a/.env.production.sit b/.env.production.sit index 18f137550..2191f2dde 100644 --- a/.env.production.sit +++ b/.env.production.sit @@ -2,6 +2,6 @@ NODE_ENV=production # VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api # VUE_APP_API_SERVER = http://192.168.1.140/api VUE_APP_API_SERVER = http://219.146.91.110:30801/api -VUE_APP_BIPASS_API_SERVER = http://bipaas.elinkservice.com:30801/linkdata/linkdata-gateway/route +VUE_APP_BIPASS_API_SERVER = http://dcommunity-dev.elinkservice.cn:30801/linkdata/linkdata-gateway/route VUE_APP_NODE_ENV=prod:sit VUE_APP_PUBLIC_PATH=epmet-oper diff --git a/src/views/modules/base/smartImport.vue b/src/views/modules/base/smartImport.vue index 17c7ae81f..6c231d0bd 100644 --- a/src/views/modules/base/smartImport.vue +++ b/src/views/modules/base/smartImport.vue @@ -409,7 +409,8 @@ export default { .then((res) => { console.log("res-up", res); if (res.data.code == 0 && res.data.msg == "success") { - this.upload2(this.fileData, this.importCode); + // this.upload2(this.fileData, this.importCode); + this.afterSuccess(); } else this.$message.error(res.data.msg); }) .catch((err) => { @@ -423,7 +424,7 @@ export default { async upload2(file, code) { this.importLoading = true; - this.importBtnTitle = "正在上次中..."; + this.importBtnTitle = "正在上传中..."; const formData = new FormData(); //FormData对象,添加参数只能通过append('key', value)的形式添加 formData.append("file", file.file); //添加文件对象 formData.append("code", code); //添加文件对象