liuqiao 1 jaar geleden
bovenliggende
commit
62b6577240
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      src/main.js

+ 2 - 0
src/main.js

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