|
|
@@ -1,7 +1,7 @@
|
|
|
import { createApp } from 'vue'
|
|
|
import App from './App.vue'
|
|
|
import router from './router'
|
|
|
-import { createPinia } from 'pinia'
|
|
|
+import Pinia from './store'
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
import 'element-plus/dist/index.css'
|
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
|
@@ -20,7 +20,6 @@ import 'virtual:svg-icons-register'
|
|
|
import './permission'
|
|
|
|
|
|
const app = createApp(App)
|
|
|
-const pinia = createPinia()
|
|
|
|
|
|
// 注册所有 Element Plus 图标(Sidebar 的 icon 字段使用)
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
@@ -35,5 +34,5 @@ app.component('Pagination', Pagination)
|
|
|
// 注册状态文本组件
|
|
|
app.component('StatusText', StatusText)
|
|
|
|
|
|
-app.use(pinia).use(router)
|
|
|
+app.use(Pinia).use(router)
|
|
|
app.mount('#app')
|