Module Warning (from ./node_modules/eslint-loader/index.js):
error: Attribute ":class" should go before "class" (vue/attributes-order) at src/layout/components/Sidebar/Logo.vue:2:39:
1 |
2 |
| ^
3 |
4 |
5 |
1 error found.
1 error potentially fixable with the --fix option.
Module Warning (from ./node_modules/eslint-loader/index.js):
error: Attribute "ref" should go before ":key" (vue/attributes-order) at src/views/login/index.vue:30:11:
28 | <el-input
29 | :key="passwordType"
1 error found.
1 error potentially fixable with the --fix option.
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use / eslint-disable / to ignore all warnings in a file.
Module Warning (from ./node_modules/eslint-loader/index.js): error: Attribute ":class" should go before "class" (vue/attributes-order) at src/layout/components/Sidebar/Logo.vue:2:39: 1 |
你写的代码不符合eslint规范,想要关闭eslint规范,请去vue.config.js文件中将lintOnSave属性设为false