Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行项目时npm run electron:serve,和其他选项卡的组件树Vue.js devtools是空的。实际上它没有检测到该项目。
npm run electron:serve
Vue.js devtools
我该如何解决这个问题?
终止项目并在in文件之前添加以下行,然后通过命令再次运行项目。new Vue(...)main.jsnpm run electron:serve
new Vue(...)
main.js
Vue.config.devtools = process.env.NODE_ENV === 'development';
结果: