chore(persist): 修复持久化状态 pick 字段

This commit was merged in pull request #9.
This commit is contained in:
2026-02-10 01:18:02 +08:00
parent 377c36f846
commit 8d6e2efb53
2 changed files with 2 additions and 2 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'],
},
}
)