Преглед на файлове

F 前端 修复个人信息页console控制台报错问题

雷二猛 преди 7 години
родител
ревизия
e4638a3cc8
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      spug_web/src/components/account/Person.vue
  2. 3 3
      spug_web/src/components/account/PersonSet.vue

+ 1 - 1
spug_web/src/components/account/Person.vue

@@ -42,7 +42,7 @@
             getPersonInfo(user_id) {
                 this.$http.get(`/api/account/users/${user_id}`).then((response) => {
                     this.personInfo = response.result;
-                }, (response) => this.$layer_message(response.result)).finally()
+                }, (response) => this.$layer_message(response.result))
             },
             getPerson(){
                 let user_id = localStorage.getItem('user_id');

+ 3 - 3
spug_web/src/components/account/PersonSet.vue

@@ -136,7 +136,7 @@
             getPersonInfo(user_id) {
                 this.$http.get(`/api/account/users/${user_id}`).then((response) => {
                     this.personInfo = response.result;
-                }, (response) => this.$layer_message(response.result)).finally()
+                }, (response) => this.$layer_message(response.result))
             },
             //重置密码表单
             cancelPerson: function () {
@@ -149,14 +149,14 @@
             modifyPwd: function () {
                 this.$http.post(`/api/account/users/modifypwd`, this.pwdInfo).then(response => {
                     this.$layer_message('修改成功', 'success');
-                }, response => this.$layer_message(response.result)).finally();
+                }, response => this.$layer_message(response.result));
             },
             modifyPerson: function () {
                 console.log(this.personInfo);
                 this.$http.put(`/api/account/users/${this.personInfo.id}`, this.personInfo).then(response => {
                     this.$layer_message('保存成功', 'success');
                     localStorage.setItem('nickname', response.result['nickname']);
-                }, response => this.$layer_message(response.result)).finally();
+                }, response => this.$layer_message(response.result));
             },
             getPerson(){
                 let user_id = localStorage.getItem('user_id');