1、代码编写

vue踩过的坑('url' is assigned a value but never used  no-unused-vars)-LMLPHP

2、遇见错误

vue踩过的坑('url' is assigned a value but never used  no-unused-vars)-LMLPHP

3、解决方案

vue踩过的坑('url' is assigned a value but never used  no-unused-vars)-LMLPHP

在错误代码后加入注释:(// eslint-disable-line no-unused-vars)

之后页面上就不会出现该错误信息了

05-22 00:09