温华:暂时修复打包失败问题

This commit is contained in:
wenhua
2023-11-01 11:30:19 +08:00
parent 1e768b147f
commit 23cebffc12
22 changed files with 38 additions and 40 deletions

View File

@@ -34,12 +34,16 @@ export const authInfoSlice = createSlice({
extraReducers(builder) {
builder
.addCase(getAuthInfo.pending, (state) => {
console.log(state);
console.log('正在请求登录用户信息')
})
.addCase(getAuthInfo.fulfilled, (state, {payload}) => {
console.log(state);
return payload
})
.addCase(getAuthInfo.rejected, (state, err) => {
console.log(state);
console.log(err, 'rejected')
})
}