perf: improve the login process

This commit is contained in:
vince
2024-07-11 21:48:56 +08:00
parent d62a3da009
commit c4c8103af2
5 changed files with 28 additions and 29 deletions

View File

@@ -85,7 +85,11 @@ const menus = computed(() => [
const appStore = useAppStore();
const accessStore = useAccessStore();
const { openLoginExpiredModal, userInfo } = toRefs(accessStore);
const {
loading: loginLoading,
openLoginExpiredModal,
userInfo,
} = toRefs(accessStore);
const router = useRouter();
async function handleLogout() {
@@ -126,6 +130,7 @@ function handleMakeAll() {
<template #dialog>
<AuthenticationLoginExpiredModal
v-model:open="openLoginExpiredModal"
:loading="loginLoading"
password-placeholder="123456"
username-placeholder="vben"
@submit="accessStore.authLogin"