|
@@ -342,18 +342,18 @@ class Home extends React.Component {
|
|
|
// 改变颜色
|
|
|
changeSwitch = () => {
|
|
|
let { colorName } = this.state;
|
|
|
- if (!colorName) {
|
|
|
- colorName = 'white-bg';
|
|
|
- } else if (colorName == 'white-bg') {
|
|
|
- colorName = 'dark-bg';
|
|
|
- } else {
|
|
|
- colorName = '';
|
|
|
- }
|
|
|
+ // if (!colorName) {
|
|
|
+ // colorName = 'white-bg';
|
|
|
+ // } else if (colorName == 'white-bg') {
|
|
|
+ // colorName = 'dark-bg';
|
|
|
+ // } else {
|
|
|
+ // colorName = '';
|
|
|
+ // }
|
|
|
this.setState({
|
|
|
// colorName,
|
|
|
isGm: !this.state.isGm,
|
|
|
});
|
|
|
- localStorage.setItem('ZZJ-color', colorName);
|
|
|
+ // localStorage.setItem('ZZJ-color', colorName);
|
|
|
};
|
|
|
openLogin = (cache) => {
|
|
|
if (!cache) {
|