From 80215b3e33a7b884ec1637096629e4dd3bce491c Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 6 Aug 2025 13:43:11 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=A0=E9=99=A4=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=BB=A4=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/Auth.js | 4 +--- src/views/products/PickYear.jsx | 9 ++++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/stores/Auth.js b/src/stores/Auth.js index dcd9e65..34768fe 100644 --- a/src/stores/Auth.js +++ b/src/stores/Auth.js @@ -38,7 +38,6 @@ export const fetchPermissionListByUserId = async (userId) => { } const initialState = { - tokenInterval: null, loginStatus: 0, defaltRoute: '', currentUser: { @@ -119,10 +118,9 @@ const useAuthStore = create(devtools((set, get) => ({ }, logout: () => { - const { tokenInterval, currentUser } = get() + const { currentUser } = get() const { clearStorage } = usingStorage() clearStorage() - clearInterval(tokenInterval) set(() => ({ ...initialState, currentUser: { diff --git a/src/views/products/PickYear.jsx b/src/views/products/PickYear.jsx index 6329175..ccef783 100644 --- a/src/views/products/PickYear.jsx +++ b/src/views/products/PickYear.jsx @@ -13,7 +13,7 @@ function PickYear() { - 请选择采购年份 + 请选择产品年份 { const useYear = date.year();