From b94baa18c18187a8cfd6aa6fa3a6170e75eb9eff Mon Sep 17 00:00:00 2001 From: Soybean Date: Sat, 15 Jun 2024 00:49:24 +0800 Subject: [PATCH] optimize(projects): optimize code --- src/store/modules/auth/index.ts | 2 +- src/typings/global.d.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index a8fb41d3..61308e22 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -7,8 +7,8 @@ import { useRouterPush } from '@/hooks/common/router'; import { fetchGetUserInfo, fetchLogin } from '@/service/api'; import { localStg } from '@/utils/storage'; import { $t } from '@/locales'; -import { useTabStore } from '@/store/modules/tab'; import { useRouteStore } from '../route'; +import { useTabStore } from '../tab'; import { clearAuthStorage, getToken } from './shared'; export const useAuthStore = defineStore(SetupStoreId.Auth, () => { diff --git a/src/typings/global.d.ts b/src/typings/global.d.ts index 53268714..d53c4871 100644 --- a/src/typings/global.d.ts +++ b/src/typings/global.d.ts @@ -14,6 +14,10 @@ declare global { $notification?: import('naive-ui').NotificationProviderInst; } + interface ViewTransition { + ready: Promise; + } + export interface Document { startViewTransition?: (callback: () => Promise | void) => ViewTransition; } @@ -21,7 +25,3 @@ declare global { /** Build time of the project */ export const BUILD_TIME: string; } - -interface ViewTransition { - ready: Promise; -}