Browse Source

优化eslint

test
wangxy 3 years ago
parent
commit
236e941eb6
2 changed files with 2 additions and 2 deletions
  1. +1
    -0
      .eslintrc.js
  2. +1
    -2
      src/components/SideMenu.vue

+ 1
- 0
.eslintrc.js View File

@ -10,5 +10,6 @@ module.exports = {
rules: { rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off", "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"endOfLine": "auto",
}, },
}; };

+ 1
- 2
src/components/SideMenu.vue View File

@ -32,8 +32,7 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.sidebar { .sidebar {
.el-submenu__title:focus,
.el-submenu__title:hover {
.el-submenu__title:focus, .el-submenu__title:hover {
background: transparent; background: transparent;
} }
} }


Loading…
Cancel
Save