Skip to content

Commit 0d1aa81

Browse files
author
Lan
committed
feat: 2023主题的登录更新
1 parent cbc356a commit 0d1aa81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fcb-fronted/src/views/Admin/AdminView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ const menus = ref([
6868
},
6969
]);
7070
const refreshLoginStatus = () => {
71-
adminData.updateAdminPwd(adminData.adminPassword);
7271
request({
7372
url: '/admin/login',
7473
method: 'post',
7574
}).then((res: any) => {
7675
if (res.code === 200) {
7776
isLogin.value = true;
77+
adminData.updateAdminPwd(res.detail.token);
7878
ElMessage.success(t('admin.login.loginSuccess'));
7979
} else {
8080
ElMessage.error(t('admin.login.loginError'));

0 commit comments

Comments
 (0)