登录后返回原始页面功能

This commit is contained in:
honue
2024-03-05 15:20:27 +08:00
parent 73f11b920f
commit 14e776a287
3 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ interface AuthState {
superUser: boolean
userName: string
avatar: string
originalPath: string | null
}
// 定义根状态类型
@@ -23,6 +24,7 @@ const authModule: Module<AuthState, RootState> = {
superUser: false,
userName: '',
avatar: '',
originalPath: null,
},
mutations: {
setToken(state, token: string) {