Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: 修复打包后报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Mar 27, 2023
1 parent d7a5040 commit 1cde55c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/admin/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { registerComponents } from '../init-components'
const app = createApp(App)

setupPinia(app)

//注册组件
await registerComponents(app)

await initApplication()
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/store/auth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineStore } from 'pinia'
import { defineStore } from '@vben/stores'
import { layoutRoutes, PAGE_NOT_FOUND_ROUTE } from '@vben/router'
import { filterTree } from '@vben/utils'
import { Menu } from '@vben/types'
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ProjectConfig,
TransitionSetting,
} from '@vben/types'
import { defineStore } from 'pinia'
import { defineStore } from '@vben/stores'
import { deepMerge } from '@vben/utils'
import { APP_DARK_MODE_KEY_, ThemeEnum } from '@vben/constants'
import { darkMode, projectSetting } from '@/setting'
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/store/lock.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { LockInfo } from '@vben/types'
import { defineStore } from 'pinia'
import { defineStore } from '@vben/stores'
import { useUserStore } from '@/store/user'

interface LockState {
Expand Down
3 changes: 1 addition & 2 deletions apps/admin/src/store/modules/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineStore } from 'pinia'
// import { pinia } from '@/pinia'
import { defineStore } from '@vben/stores'
import { resetRouter } from '@vben/router'

interface AppState {
Expand Down
3 changes: 1 addition & 2 deletions apps/admin/src/store/multipleTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import type {
Router,
} from 'vue-router'
import { toRaw, unref } from 'vue'
import { defineStore } from 'pinia'

import { useGo, useRedo } from '@vben/hooks'
// import { Persistent } from '/@/utils/cache/persistent';

import { defineStore } from '@vben/stores'
import { PageEnum } from '@vben/constants'
import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '@vben/router'
import { getRawRoute, RemovableRef } from '@vben/utils'
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/store/user.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { LoginParams } from '@/apis/auth'
import { defineStore } from 'pinia'
import { defineStore } from '@vben/stores'
import { BASIC_HOME_PATH, BASIC_LOGIN_PATH, PageEnum } from '@vben/constants'
import { router } from '@/router'
import { doLogoutApi, getUserInfoApi, doLoginApi } from '@/apis/auth'
Expand Down

0 comments on commit 1cde55c

Please sign in to comment.