2024-08-08 22:08:38 135 156
通常情况下,在组件内部,推荐使用 `this.$store.state`,而在非组件的上下文中(如 Vuex 的模块定义、actions、mutations 或 getters)使用 `store.state` 更为合适。_vue this.$store.state