Skip to content

Commit

Permalink
optimize(projects): optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jun 14, 2024
1 parent 3eeace9 commit b94baa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/store/modules/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {
Expand Down
8 changes: 4 additions & 4 deletions src/typings/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ declare global {
$notification?: import('naive-ui').NotificationProviderInst;
}

interface ViewTransition {
ready: Promise<void>;
}

export interface Document {
startViewTransition?: (callback: () => Promise<void> | void) => ViewTransition;
}

/** Build time of the project */
export const BUILD_TIME: string;
}

interface ViewTransition {
ready: Promise<void>;
}

0 comments on commit b94baa1

Please sign in to comment.