mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-18 01:36:37 +08:00
refactor(projects): remove unnecessary logic in onRouteSwitchWhenLoggedIn
This commit is contained in:
parent
8146858b96
commit
d6c8142bb4
@ -318,7 +318,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function onRouteSwitchWhenLoggedIn() {
|
async function onRouteSwitchWhenLoggedIn() {
|
||||||
await authStore.initUserInfo();
|
// some global init logic when logged in and switch route
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onRouteSwitchWhenNotLoggedIn() {
|
async function onRouteSwitchWhenNotLoggedIn() {
|
||||||
|
Loading…
Reference in New Issue
Block a user