change persist

This commit is contained in:
zhangtao 2022-07-26 17:22:26 +08:00
parent 398deb691c
commit 15d4d3147f
3 changed files with 1638 additions and 288 deletions

1920
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
"dayjs": "^1.11.2",
"mockjs": "^1.1.0",
"pinia": "^2.0.13",
"pinia-persistedstate-plugin": "^0.1.0",
"pinia-plugin-persist": "^1.0.0",
"tinymce": "^5.10.2",
"vue": "^3.2.16",
"vue-router": "^4.0.14",

View File

@ -1,7 +1,7 @@
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import piniaPersist from 'pinia-plugin-persist'
const store = createPinia()
store.use(createPersistedState())
store.use(piniaPersist)
export function setupStore(app) {
app.use(store)