【vue學習】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
————————————————
版權聲明:本文為CSDN博主「Chasing stars」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/weixin_43520670/article/details/104716644


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM