2 Commits

3 changed files with 13 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ export const useLoginState = defineStore(
persist: {
key: 'xsh_assistant_persisted_state',
storage: piniaPluginPersistedstate.localStorage(),
paths: ['is_logged_in', 'token', 'user'],
pick: ['is_logged_in', 'token', 'user'],
},
}
)

View File

@@ -33,7 +33,7 @@ export const useTourState = defineStore(
persist: {
key: 'xsh_assistant_tour_state',
storage: piniaPluginPersistedstate.localStorage(),
paths: ['tourState'],
pick: ['tourState'],
},
}
)

View File

@@ -1,13 +1,18 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
"path": "./.nuxt/tsconfig.app.json"
},
{
"path": "./.nuxt/tsconfig.server.json"
},
{
"path": "./.nuxt/tsconfig.shared.json"
},
{
"path": "./.nuxt/tsconfig.node.json"
}
]
}