소스 검색

修改提示

wangningfei 2 년 전
부모
커밋
5d2f6a99ab
2개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      vue-admin-template-master/.env.development
  2. 8 1
      vue-admin-template-master/src/views/shop/message/index.vue

+ 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'