google-chrome - 在此页面上检测到 Vue.js。 Devtools 检查不可用,因为它处于生产模式或被作者明确禁用

标签 google-chrome laravel-5 google-chrome-extension vue.js

enter image description here

我正在尝试启用 vue-devtools在谷歌浏览器中。但我无法启用它。我在 Laravel 应用程序中使用 vue.js。

enter image description here

我的服务器使用 php artisan serve 命令运行。

最佳答案

我在这个问题的标题和 this solution 中看到了错误消息为我工作:

Vue.config.devtools = true 添加到您创建 Vue 实例的文件中(对我来说是 main.js)。

请注意,如 this answer 中所述,您需要在创建商店之前放置 Vue.config.devtools = true 行,以便开发工具的 Vuex 部分正常工作。如果您在单独的文件中创建 Vuex 商店(例如 store.js),您可能需要在您的两个文件中都包含 Vue.config.devtools = truemain.js 文件以及 store.js 文件。

下面是我的项目中的变化: enter image description here enter image description here

关于google-chrome - 在此页面上检测到 Vue.js。 Devtools 检查不可用,因为它处于生产模式或被作者明确禁用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43781351/

相关文章:

javascript - html5 音频。如何获得比特率

google-chrome-extension - 如何获得访问我自己的扩展资源(特定页面)的权限?

Laravel 源加密

php - Passport 通过访问 token 获取用户 Laravel 5.3

php - Laravel 编辑路由最佳实践

javascript - 从 JavaScript 以编程方式打开 Safari/Google Chrome 开发者工具

javascript - 从 html 页面内部更新父变量

javascript - Webkit浏览器: click event handler doe not work properly

node.js - Chrome 上的 Nodejs 本地主机问题

javascript - Chrome 和 Auto 执行一个 javascript 函数