据我所知vuex-router-sync仅仅是同步route与 vuex store和开发人员可以访问route如下:
store.state.route.path
store.state.route.params
Run Code Online (Sandbox Code Playgroud)
不过,我也可以处理route由this.$route哪个更简洁.
我什么时候需要在商店中使用路由,以及我需要vuex-router-sync的场景是什么?
我在 Windows 中通过pm2withcluster模式运行我的网络应用程序。一切都运行良好。
但是,当我运行时pm2 list,有时我可能会看到某些工作进程的 cpu 使用率超过 100%。
根据我的理解,一个工作进程只能使用一个cpu,这意味着最大cpu使用率不能高于100%。
为什么pm2显示cpu使用率超过100%?