|
@@ -4,11 +4,15 @@ import ElementPlus from 'element-plus'
|
|
|
import "./TailWindCss/index.css";
|
|
|
import 'element-plus/dist/index.css'
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
+import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
|
import App from './App.vue'
|
|
|
import router from './router/index'
|
|
|
import * as echarts from 'echarts';
|
|
|
|
|
|
const app = createApp(App)
|
|
|
+const pinia = createPinia()
|
|
|
+
|
|
|
+pinia.use(piniaPluginPersistedstate)
|
|
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
app.component(key, component)
|
|
@@ -19,4 +23,5 @@ app
|
|
|
.use(ElementPlus)
|
|
|
.use(createPinia())
|
|
|
.use(router)
|
|
|
+ .use(pinia)
|
|
|
.mount('#app')
|