【fix ESLint】src/components/page

This commit is contained in:
danshihao
2023-03-03 16:51:52 +08:00
parent d5cbb3e5b8
commit 5039535b53
4 changed files with 10 additions and 16 deletions
@@ -74,7 +74,7 @@
</a-layout-content>
<!-- layout footer -->
<a-layout-footer style="padding: 0px">
<a-layout-footer style="padding: 0">
<global-footer/>
</a-layout-footer>
</a-layout>
@@ -166,7 +166,7 @@ export default {
},
findMenuBykey (menus, key) {
for (const i of menus) {
if (i.path == key) {
if (i.path === key) {
this.activeMenu = { ...i }
} else if (i.children && i.children.length > 0) {
this.findMenuBykey(i.children, key)
@@ -529,7 +529,7 @@ export default {
// 内容区
.layout-content {
margin: 24px 24px 0px;
margin: 24px 24px 0;
height: 64px;
padding: 0 12px 0 0;
}
@@ -635,7 +635,7 @@ export default {
.ant-dropdown-menu-item > .anticon:first-child,
.ant-dropdown-menu-item > a > .anticon:first-child,
.ant-dropdown-menu-submenu-title > .anticon:first-child
.ant-dropdown-menu-submenu-title > .anticon:first-child,
.ant-dropdown-menu-submenu-title > a > .anticon:first-child {
min-width: 12px;
margin-right: 8px;