优化
This commit is contained in:
+5
-2
@@ -1,4 +1,4 @@
|
||||
import { createApp } from 'vue'
|
||||
import { computed, createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import 'element-plus/es/components/message/style/css'
|
||||
@@ -11,6 +11,7 @@ import { useUnsavedWorkStore } from '@/core/unsaved-work/unsavedWork'
|
||||
import { useWorkspaceTabsStore } from '@/core/workspace-tabs/workspaceTabs'
|
||||
import { useAuthStore } from '@/core/auth/auth'
|
||||
import { registerAuthSessionExpiredHandler } from '@/shared/api/http'
|
||||
import { UI_PREFERENCE_SCOPE } from '@/shared/utils/uiLayoutPreference'
|
||||
import './styles/index.css'
|
||||
|
||||
const pinia = createPinia()
|
||||
@@ -41,4 +42,6 @@ window.addEventListener('beforeunload', (event) => {
|
||||
event.returnValue = ''
|
||||
})
|
||||
|
||||
createApp(App).use(pinia).use(router).mount('#app')
|
||||
const app = createApp(App)
|
||||
app.provide(UI_PREFERENCE_SCOPE, computed(() => auth.user?.id || 'anonymous'))
|
||||
app.use(pinia).use(router).mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user