Przeglądaj źródła

修改用户信息

dujingxian 4 lat temu
rodzic
commit
3840a6c4a1
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 1 1
      src/views/user/edit.vue
  2. 3 1
      src/views/user/info.vue

+ 1 - 1
src/views/user/edit.vue

@@ -200,7 +200,7 @@
             }
             console.log('serialize', Utils.getInstance().serialize(form));
             let res = await Http.getInstance().saveBase(Object.assign(Utils.getInstance().serialize(form), {is_edit: true}));
-            console.log('res.data', res.data)
+            console.log('res.data', res)
             // localStorage.setItem("social_type", res.data.social_type);
               res.data && res.data.social_type && localStorage.setItem("social_type", res.data.social_type);
               res.data && res.data.city_code && localStorage.setItem("citycode", res.data.city_code);

+ 3 - 1
src/views/user/info.vue

@@ -137,11 +137,13 @@ import login from "@/store/module/login";
         // }
 
         // 点击显示弹层
-        edit(key: String) {
+        edit(key: any) {
             this.$refs.refEdit.dialogVisible = true
             console.log('key', key);
             
             this.keyVal = key
+            console.log('this.data.key', this.data[key]);
+            
             this.$refs.refEdit.getCurEditItem(this.data[key])
         }