Browse Source

修改提示

wangningfei 2 years ago
parent
commit
5d2f6a99ab

+ 2 - 2
vue-admin-template-master/.env.development

@@ -2,5 +2,5 @@
 ENV = 'development'
 
 # base api
-# VUE_APP_BASE_API = 'https://hw.cirray.cn/api/'
-VUE_APP_BASE_API = 'https://talk.cirray.cn/api/'
+VUE_APP_BASE_API = 'https://hw.cirray.cn/api/'
+# VUE_APP_BASE_API = 'https://talk.cirray.cn/api/'

+ 8 - 1
vue-admin-template-master/src/views/shop/message/index.vue

@@ -454,7 +454,7 @@ export default {
           };
           let res = await changeShop(params);
           console.log(res);
-          if (res === "OK") {
+          if (res.status === "success") {
             this.getList();
             this.selectValue = "";
             this.dialogFormVisible = false;
@@ -464,6 +464,13 @@ export default {
               type: "success",
               duration: 2000
             });
+          } else {
+            this.$notify({
+              title: "失败",
+              message: res.message,
+              type: "fail",
+              duration: 4000
+            });
           }
           // this.temp.id = parseInt(Math.random() * 100) + 1024 // mock a id
           // this.temp.author = 'vue-element-admin'