| | |
| | | "mitt": "^3.0.0", |
| | | "nprogress": "^0.2.0", |
| | | "pinia": "^2.0.14", |
| | | "pinia-plugin-persistedstate": "^2.1.1", |
| | | "print-js": "^1.6.0", |
| | | "qrcodejs2-fixes": "^0.0.2", |
| | | "screenfull": "^6.0.1", |
| | |
| | | // https://pinia.vuejs.org/ |
| | | import { createPinia } from 'pinia'; |
| | | import { createPersistedState } from 'pinia-plugin-persistedstate' |
| | | |
| | | // 创建 |
| | | const pinia = createPinia(); |
| | | pinia.use(createPersistedState({ |
| | | serializer:{ |
| | | serialize:JSON.stringify, |
| | | deserialize:JSON.parse, |
| | | } |
| | | })) |
| | | |
| | | // 导出 |
| | | export default pinia; |
| | |
| | | dataList: [] |
| | | } |
| | | }), |
| | | persist:true, |
| | | actions: { |
| | | async setUserInfos(value: any) { |
| | | this.userInfos.userName = value.realName; |
| | |
| | | resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" |
| | | integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== |
| | | |
| | | pinia-plugin-persistedstate@^2.1.1: |
| | | version "2.1.1" |
| | | resolved "https://registry.npmmirror.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-2.1.1.tgz#584c416cdc278689ae9d49483621ec96dcb7d6ef" |
| | | integrity sha512-HUgsU5IRtM75eAQiIqzT3p1oPEuYH1/B2ipTMU++yE+FV0LkHaBswdKXs0RMWYCmugO8s62oxLTh/N1dLNp+5A== |
| | | |
| | | pinia@^2.0.14: |
| | | version "2.0.14" |
| | | resolved "https://registry.npmjs.org/pinia/-/pinia-2.0.14.tgz" |