fix(#606): guanyu (文件合入)

This commit is contained in:
2026-06-15 08:18:15 +08:00
committed by 华佗
parent 60c84b5a8c
commit e877dfd259
3 changed files with 12 additions and 11 deletions

View File

@@ -7,9 +7,9 @@ export function getToken() {
}
export function setToken(token) {
return Cookies.set(TokenKey, token)
return Cookies.set(TokenKey, token, { path: '/' })
}
export function removeToken() {
return Cookies.remove(TokenKey)
return Cookies.remove(TokenKey, { path: '/' })
}