refactor: 优化登录表单组件并统一代码缩进

This commit is contained in:
wangqiao
2025-09-05 09:30:18 +08:00
parent bdad6d4406
commit c8d47fd959

View File

@ -129,10 +129,9 @@
// 推出登录 // 推出登录
const handleLoginOut = () => { const handleLoginOut = () => {
REFRESHTOKEN.removeToken() clearNuxtState(['token', 'userInfo'])
userStore.setToken('') userStore.logout()
userStore.setUserId('') userStore.$reset()
userStore.setRefreshToken('')
window.location.reload() window.location.reload()
} }