From 773d0c19573bd1c785a834038ffad26c75edec12 Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 25 Sep 2024 14:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=99=BB=E9=99=86=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/layout/components/Header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } -- 2.44.0.windows.1