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.
我正在 vue.js 系统中实现登录功能。我将登录用户的状态存储在 userIsAuthenticated 中并且出现了问题:我可以使用 Vue DEVTOLLS 插件来更改生产应用程序的 vuex 状态吗?
是的你可以
使用Force Vue
手动启用 devtools
为此,您只需在main.js
main.js
Vue.config.devtools = true
此选项的默认值true在开发版本和false生产版本中。您可以将其设置为 true 以启用对生产版本的检查。
true
false
然后您可以打开 devtools 并转到 Vuex 部分并更改您需要的内容。
更多信息:开发工具