宠物界面
Change-Id: I2dd7341009685f4daac87fa0a848032b1d0c1e42
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;