From dfd2e9de21f4c80f4d4735e180a0f1a034fca67e Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Tue, 06 May 2025 14:22:59 +0800
Subject: [PATCH] 页面风格与其他保持一致,处理中状态上传图片添加必填项限制,去掉“并派发”,下方按钮变更为“受理”、“不受理”、“取消”
---
src/utils/auth.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/utils/auth.js b/src/utils/auth.js
index cf0694d..4e41090 100644
--- a/src/utils/auth.js
+++ b/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() {
--
Gitblit v1.9.3