feat: 修改vuex为pinia
修改vuex为pinia
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import {createApp} from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from "./router";
|
||||
// import {store, key} from './store'
|
||||
import { setupStore } from "@/store";
|
||||
import '@/styles/index.scss'
|
||||
|
||||
import { store } from "./store";
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/theme-chalk/index.css'
|
||||
import locale from 'element-plus/lib/locale/lang/zh-cn'
|
||||
@@ -30,8 +28,8 @@ for (let iconName in ElIconModules) {
|
||||
|
||||
// 全局方法
|
||||
app.config.globalProperties.$getDictItemsByCode = getDictItemsByCode
|
||||
setupStore(app);
|
||||
app.component('Pagination', Pagination) // 全局组件
|
||||
.use(store)
|
||||
.use(router)
|
||||
.use(ElementPlus, {locale})
|
||||
.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user