Skip to content

Commit

Permalink
chore(core): merge constant & enum folders
Browse files Browse the repository at this point in the history
  • Loading branch information
locdp committed Sep 4, 2024
1 parent c1c7a87 commit 0107624
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/store/modules/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useBoolean } from '@sa/hooks'
import { useRouteStore } from '../route'
import { useTabStore } from '../tab'
import { useThemeStore } from '../theme'
import { SetupStoreId } from '@/enum'
import { SetupStoreId } from '@/constants/enum'
import { router } from '@/router'
import { $t, setLocale } from '@/locales'
import { setDayjsLocale } from '@/locales/dayjs'
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLoading } from '@sa/hooks'
import { useRouteStore } from '../route'
import { useTabStore } from '../tab'
import { clearAuthStorage, getToken } from './shared'
import { SetupStoreId } from '@/enum'
import { SetupStoreId } from '@/constants/enum'
import { useRouterPush } from '@/hooks/common/router'
import { fetchGetUserInfo, fetchLogin } from '@/service/api'
import { localStg } from '@/utils/storage'
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/route/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
transformMenuToSearchMenus,
updateLocaleOfGlobalMenus,
} from './shared'
import { SetupStoreId } from '@/enum'
import { SetupStoreId } from '@/constants/enum'
import { router } from '@/router'
import { createStaticRoutes, getAuthVueRoutes } from '@/router/routes'
import { ROOT_ROUTE } from '@/router/routes/builtin'
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/tab/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
updateTabsByI18nKey,
} from './shared'
import { router } from '@/router'
import { SetupStoreId } from '@/enum'
import { SetupStoreId } from '@/constants/enum'
import { useRouterPush } from '@/hooks/common/router'
import { localStg } from '@/utils/storage'
import { useRouteStore } from '@/store/modules/route'
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
toggleAuxiliaryColorModes,
toggleCssDarkMode,
} from './shared'
import { SetupStoreId } from '@/enum'
import { SetupStoreId } from '@/constants/enum'
import { localStg } from '@/utils/storage'

/** Theme store */
Expand Down
2 changes: 1 addition & 1 deletion src/store/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PiniaPluginContext } from 'pinia'
import { jsonClone } from '@sa/utils'
import { SetupStoreId } from '@/enum'
import { SetupStoreId } from '@/constants/enum'

/**
* The plugin reset the state of the store which is written by setup syntax
Expand Down

0 comments on commit 0107624

Please sign in to comment.