Skip to content

Commit c57f88a

Browse files
committed
fix(auth): remove redundant authStore declaration in resetStore function
1 parent 3e4e17a commit c57f88a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/store/modules/auth/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { clearAuthStorage, getToken } from './shared';
1313

1414
export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
1515
const route = useRoute();
16+
const authStore = useAuthStore();
1617
const routeStore = useRouteStore();
1718
const tabStore = useTabStore();
1819
const { toLogin, redirectFromLogin } = useRouterPush(false);
@@ -39,8 +40,6 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
3940

4041
/** Reset auth store */
4142
async function resetStore() {
42-
const authStore = useAuthStore();
43-
4443
recordUserId();
4544

4645
clearAuthStorage();

0 commit comments

Comments
 (0)