chore(persist): 修复持久化状态 pick 字段
This commit was merged in pull request #9.
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
@@ -33,7 +33,7 @@ export const useTourState = defineStore(
|
||||
persist: {
|
||||
key: 'xsh_assistant_tour_state',
|
||||
storage: piniaPluginPersistedstate.localStorage(),
|
||||
paths: ['tourState'],
|
||||
pick: ['tourState'],
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user