调整cookie写入方法

This commit is contained in:
piexlmax(奇淼
2024-02-22 13:43:53 +08:00
parent 5b203326ae
commit 632b3c200c
2 changed files with 12 additions and 3 deletions
-1
View File
@@ -141,7 +141,6 @@ export const useUserStore = defineStore('user', () => {
watch(() => token.value, () => {
window.localStorage.setItem('token', token.value)
cookie.set('x-token', token.value)
})
return {