@@ -24,10 +16,7 @@ export default class TopNavHeader extends PureComponent {
Ant Design Pro
-
+
diff --git a/src/components/TopNavHeader/index.less b/src/components/TopNavHeader/index.less
index 456fc548af586a33c4e97fdee558249ad64aba5b..681c6ef79f17dfc19b35fcbc38f415c11fa11e34 100644
--- a/src/components/TopNavHeader/index.less
+++ b/src/components/TopNavHeader/index.less
@@ -5,7 +5,7 @@
padding: 0 12px 0 0;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
position: relative;
- &.ligth {
+ &.light {
background-color: #fff;
}
.main {
@@ -46,7 +46,7 @@
}
}
-.ligth {
+.light {
h1 {
color: #002140;
}
diff --git a/src/models/setting.js b/src/models/setting.js
index 783ff344faf41cfa9d7734d2149201bac432e1c7..fe9fdb0316815f166d492964ff3e44d375177e0f 100644
--- a/src/models/setting.js
+++ b/src/models/setting.js
@@ -20,7 +20,7 @@ export default {
Object.keys(state).forEach(key => {
if (urlParams.searchParams.has(key)) {
const value = urlParams.searchParams.get(key);
- setting[key] = value;
+ setting[key] = value === '1' ? true : '1';
}
});
return setting;