Why can’t you stop buying 618?From the technical dimension to explore>>>
When using Vue, a global variable is used. The syntax of eslint will appear eslint: ‘common’ is not defined. (no undef), saying that the variable is undefined. At this time, we can add configuration and cancel the verification
1. Add a configuration in the. Eslintrc. JS file, as shown in the figure below. My global variable is common
"globals":{ "common": true }