作品与后端连接

Change-Id: I2098443223c022ddaa657d127d05d76d9c6b7cf1
diff --git a/src/store/userReducer.ts b/src/store/userReducer.ts
index ab065b7..4334475 100644
--- a/src/store/userReducer.ts
+++ b/src/store/userReducer.ts
@@ -1,5 +1,6 @@
 import { createSlice } from '@reduxjs/toolkit';
 import { isTokenExpired } from '@/utils/jwt';
+import { getUserInfo } from '@/api/user';
 
 interface UserState {
     userId: string;
@@ -34,6 +35,7 @@
             state.isLogin = true;
         },
         getUserInfo: (state, action) => {
+            console.log(action);
             state.userId = action.payload.userId;
             state.userName = action.payload.userName;
             state.role = action.payload.role;