mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-31 22:53:47 +00:00
side fold
This commit is contained in:
@@ -62,6 +62,13 @@ export default {
|
||||
type: 'logoutSuccess'
|
||||
})
|
||||
}
|
||||
},
|
||||
*switchSider({
|
||||
payload
|
||||
}, {put}) {
|
||||
yield put({
|
||||
type: 'switchSider'
|
||||
})
|
||||
}
|
||||
},
|
||||
reducers : {
|
||||
@@ -103,6 +110,12 @@ export default {
|
||||
...state,
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
switchSider(state) {
|
||||
return {
|
||||
...state,
|
||||
siderFold: !state.siderFold
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user