|
@@ -4,6 +4,7 @@ import router from './router/index.js'
|
|
//import Vuex from 'vuex' // 引入vuex
|
|
//import Vuex from 'vuex' // 引入vuex
|
|
//import router from './router' // vue官方的路由
|
|
//import router from './router' // vue官方的路由
|
|
import ElementUI from 'element-plus'
|
|
import ElementUI from 'element-plus'
|
|
|
|
+import { createPinia } from 'pinia'
|
|
import 'element-plus/theme-chalk/index.css' // 引入整个Element样式
|
|
import 'element-plus/theme-chalk/index.css' // 引入整个Element样式
|
|
|
|
|
|
//import '"element-plus/dist/index.css'
|
|
//import '"element-plus/dist/index.css'
|
|
@@ -11,6 +12,7 @@ import 'element-plus/theme-chalk/index.css' // 引入整个Element样式
|
|
createApp(App)
|
|
createApp(App)
|
|
.use(router)
|
|
.use(router)
|
|
.use(ElementUI)
|
|
.use(ElementUI)
|
|
|
|
+ .use(createPinia)
|
|
//.use(Vuex)
|
|
//.use(Vuex)
|
|
.mount('#app')
|
|
.mount('#app')
|
|
// const app= createApp(App)
|
|
// const app= createApp(App)
|