This commit is contained in:
2026-08-06 19:03:13 +08:00
parent 7034a40aa8
commit 8695eee8c8
28 changed files with 1100 additions and 162 deletions
+5 -2
View File
@@ -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')