diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index 2f9b859..de4788c 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -190,7 +190,7 @@ const changeSubject = async (command) =>{ edusubject: command.edusubject } await updateUserInfo(data) - await userStore.login({username: phonenumber, password: plainpwd}) + await userStore.login({username: phonenumber ? phonenumber : userName, password: plainpwd}) await userStore.getInfo() router.go() }