![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
alexisdjh
?
展开
-
Vue踩坑--‘xxx‘ is assigned a value but never used no-unused-vars
Vue踩坑–‘xxx’ is assigned a value but never used no-unused-vars今天在vue美团外卖实战的时候写商家菜单滚动的时候,弹出一个报错,如下图:经过网上搜索问题答案的时候,得到解决方法如下:在错误代码后加入该行注释就行:// eslint-disable-line no-unused-vars如图:...原创 2020-08-01 22:45:24 · 16584 阅读 · 1 评论 -
今日小坑:Vue-Router之路径routes拼写错误
今天在学习Vue-Router,在写routes路径的时候不小心拼写错误,将routes错拼成了routers,代码如下:错误的拼写:routers:[ {path:"/",component: index}, {path:"/find",component:find}, {path:"/friend",component:friend} ]正确的拼写:routes:[原创 2020-07-23 12:27:36 · 423 阅读 · 0 评论