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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章