zhaoke 2 лет назад
Родитель
Сommit
a88d9a9b9e
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/views/accountManagement/components/accountHome.vue

+ 4 - 2
src/views/accountManagement/components/accountHome.vue

@@ -217,6 +217,7 @@ export default {
       options: [],
       msgType: "all",
       msgId: null,
+      accountUserId: null
     };
   },
   computed: {
@@ -458,7 +459,8 @@ export default {
       //   path: '/account/accountAdd'
       // })
     },
-    authUser () {
+    authUser (id) {
+      this.accountUserId = id;
       this.pwdflag = true;
     },
     //存储数据项-提交
@@ -470,7 +472,7 @@ export default {
             return false;
           }
           const { code, message } = await changeSecpasswd({
-            userId: sessionStorage.getItem('User_Id'),
+            userId: this.accountUserId,
             newPassword: this.dataForm.again,
           });
           if (code == 0) {