| | |
| | | ElButton: typeof import('element-plus/es')['ElButton'] |
| | | ElCard: typeof import('element-plus/es')['ElCard'] |
| | | ElCol: typeof import('element-plus/es')['ElCol'] |
| | | ElForm: typeof import('element-plus/es')['ElForm'] |
| | | ElFormItem: typeof import('element-plus/es')['ElFormItem'] |
| | | ElIcon: typeof import('element-plus/es')['ElIcon'] |
| | | ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] |
| | | ElInput: typeof import('element-plus/es')['ElInput'] |
| | |
| | | "lodash": "^4.17.21", |
| | | "mockjs": "^1.1.0", |
| | | "pinia": "^2.1.7", |
| | | "pinia-plugin-persistedstate": "^3.2.1", |
| | | "vue": "^3.4.21", |
| | | "vue-router": "^4.3.2", |
| | | "vue-ueditor-wrap": "^3.0.8", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "node_modules/pinia-plugin-persistedstate": { |
| | | "version": "3.2.1", |
| | | "resolved": "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-3.2.1.tgz", |
| | | "integrity": "sha512-MK++8LRUsGF7r45PjBFES82ISnPzyO6IZx3CH5vyPseFLZCk1g2kgx6l/nW8pEBKxxd4do0P6bJw+mUSZIEZUQ==", |
| | | "peerDependencies": { |
| | | "pinia": "^2.0.0" |
| | | } |
| | | }, |
| | | "node_modules/pinia/node_modules/vue-demi": { |
| | | "version": "0.14.8", |
| | | "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.8.tgz", |
| | |
| | | "lodash": "^4.17.21", |
| | | "mockjs": "^1.1.0", |
| | | "pinia": "^2.1.7", |
| | | "pinia-plugin-persistedstate": "^3.2.1", |
| | | "vue": "^3.4.21", |
| | | "vue-router": "^4.3.2", |
| | | "vue-ueditor-wrap": "^3.0.8", |
| | |
| | | import pinia from './store'; |
| | | import VueUeditorWrap from 'vue-ueditor-wrap'; |
| | | |
| | | |
| | | const app = createApp(App); |
| | | app.use(router); |
| | | app.use(pinia); |
| | |
| | | import { createPinia } from 'pinia'; |
| | | import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'; |
| | | const pinia = createPinia(); |
| | | pinia.use(piniaPluginPersistedstate); |
| | | export default pinia; |
| | | |
| | | export * from './modules/user.js'; |
| | |
| | | |
| | | const setUserInfo = (user) => { |
| | | userInfo.value = user; |
| | | } |
| | | }; |
| | | return { |
| | | userInfo, |
| | | setUserInfo |
| | | } |
| | | }); |
| | | }; |
| | | }, |
| | | { |
| | | persist: true, |
| | | }, |
| | | ); |