zhiquz@163.com vor 3 Jahren
Ursprung
Commit
e5394372f1
3 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. 2 2
      .env.production
  2. 1 1
      src/main.js
  3. 5 3
      src/pages/order/list.vue

+ 2 - 2
.env.production

@@ -2,6 +2,6 @@
 ENV = 'production'
 
 # base api
-#VUE_APP_BASE_API = '//api.admin.app.jiuweiyun.cn/api'
+VUE_APP_BASE_API = '//api.admin.app.jiuweiyun.cn/api'
 
-VUE_APP_BASE_API = '//api.appadmin.woaidakele.cn/api'
+#VUE_APP_BASE_API = '//api.appadmin.woaidakele.cn/api'

+ 1 - 1
src/main.js

@@ -131,7 +131,7 @@ Vue.prototype.$request = function(api, fun, conf) {
     api.then(({ code, message, data }) => { // 发送网络请求
       code === 200 ? fun(data || {}) : this.$message.error(message)
     }).catch(() => {
-      this.$message.error((conf && conf.errorMsg) || '操作失败')
+      // this.$message.error((conf && conf.errorMsg) || '操作失败')
       this._loading.close()
     }).finally(() => (conf && conf.endStillLoading) || this._loading.close())
   }

+ 5 - 3
src/pages/order/list.vue

@@ -1235,8 +1235,11 @@ export default {
       this.loadingFull = true
       try {
         this.$request(orderSpend(formdata), () => {
+          // if () {
+
+          // }
           this.getList()
-          // this.$message.success('上传成功')
+          this.$message.success('上传成功')
         })
         // this.$request(sendOrder(formdata), () => {
         //   this.getList()
@@ -1262,9 +1265,8 @@ export default {
           this.getList()
           this.$message.success('上传成功')
         })
-
         this.resetImportnew()
-        this.$message.success('上传成功')
+        // this.$message.success('上传成功')
         this.getList()
         // this.$request(sendOrder(formdata), () => {
         //   this.getList()