feat: 添加管理员权限控制和状态持久化
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
import {createApp} from 'vue'
|
||||
import {createPinia} from 'pinia'
|
||||
import persistedState from 'pinia-plugin-persistedstate';
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
@@ -8,7 +9,7 @@ import 'element-plus/dist/index.css'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(createPinia())
|
||||
app.use(createPinia().use(persistedState))
|
||||
app.use(router)
|
||||
app.use(ElementPlus)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user