Vue.js is detected on this page解决方法

Vue.js is detected on this page解决方法

最近在学习Vue,所以打算安装一个插件Vue.js devtools
5.3.3。下载完成后,发现用不了,出现了*Vue.js is detected on this page.
Devtools inspection is not available because it’s in production mode or explicitly disabled by the author.*这个问题。

解决问题后:
Vue.js is detected on this page.
Open DevTools and look for the Vue panel.

方法:
1、引入vue.min.js是不行的,引入vue.js才能使用vue-devtools。
2、在chrome的扩展程序页面,需要勾选vue-devtools的“允许访问文件地址”项。
3、如果你是在chrome商店里安装的vue-devtools,那么需要到这个扩展的安装路径下找到manifest.json文件,把其中的"persistent": false,需改为:true。
4.在你的入口JS文件里加上一行Vue.config.devtools = true

网上找了很久的资料,发现是下面这个解决了我的问题:
https://segmentfault.com/q/1010000008482156

发布了45 篇原创文章 · 获赞 52 · 访问量 2795

猜你喜欢

转载自blog.csdn.net/weixin_43520670/article/details/104716644
今日推荐