完成Work组件的界面和一些小修改
> 1. 修改优化路由守卫
> 2. 去除拦截器中的调试信息
> 3. 修改头部导航条下拉菜单的样式增加图标。
> 4. work组件现在使用mock数据
Change-Id: Ic602a35bb02e645a0d5253c5cbd12a68d70bfb33
diff --git a/src/store/store.ts b/src/store/store.ts
index 4921218..cb5b975 100644
--- a/src/store/store.ts
+++ b/src/store/store.ts
@@ -1,10 +1,13 @@
import { configureStore } from '@reduxjs/toolkit'
import authReducer from "../feature/auth/authSlice"
import userReducer from "../feature/user/userSlice"
+import workReducer from "../feature/work/workSlice"
+
export const store = configureStore({
reducer: {
auth: authReducer,
user: userReducer,
+ work: workReducer,
},
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(),
})
diff --git a/src/store/types.ts b/src/store/types.ts
deleted file mode 100644
index 3e2d796..0000000
--- a/src/store/types.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// 定义用户基本信息
-export interface User {
- id: number;
- username: string;
- email: string;
- role: string;
- token: string;
-}
-
-// 定义认证状态
-export interface AuthState {
- token: string;
- loading: boolean;
- isAuth: boolean;
- error: string
-}
\ No newline at end of file