无人机管理后台前端(已迁走)
张含笑
2025-08-05 c832bf2e80ac465e71b7a1c1f7a59d4252030989
src/utils/auth.js
@@ -6,7 +6,9 @@
const UserId = 'b-user-id';
export function getToken() {
   return Cookies.get(TokenKey);
   return Cookies.get(TokenKey, {
      path: '/'
   });
}
export function setToken(token) {
@@ -21,7 +23,10 @@
}
export function setRefreshToken(token) {
   return Cookies.set(RefreshTokenKey, token);
   return Cookies.set(RefreshTokenKey, token, {
      expires: 7,
      path: '/'
   });
}
export function removeToken() {