mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-30 13:23:49 +00:00
logs
This commit is contained in:
@@ -29,7 +29,6 @@ const getMenus = function (menuArray,siderFold,parentPath) {
|
||||
}
|
||||
|
||||
function Sider({ siderFold,darkTheme,location,changeTheme }) {
|
||||
console.log(location);
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.logo}>
|
||||
@@ -44,7 +43,7 @@ function Sider({ siderFold,darkTheme,location,changeTheme }) {
|
||||
</Menu>
|
||||
{!siderFold?<div className={styles.switchtheme}>
|
||||
<span><Icon type="bulb" />切换主题</span>
|
||||
<Switch onChange={changeTheme} defaultChecked={true} checkedChildren="黑" unCheckedChildren="白" />
|
||||
<Switch onChange={changeTheme} defaultChecked={darkTheme} checkedChildren="黑" unCheckedChildren="白" />
|
||||
</div>:''}
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -121,14 +121,12 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSwitchSider(state) {
|
||||
console.log(state);
|
||||
return {
|
||||
...state,
|
||||
siderFold: !state.siderFold
|
||||
}
|
||||
},
|
||||
handleChangeTheme(state) {
|
||||
console.log(state);
|
||||
return {
|
||||
...state,
|
||||
darkTheme: !state.darkTheme
|
||||
|
||||
Reference in New Issue
Block a user