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() {