您的位置: 首页 > 文章 > Vue_qf (23) - 状态管理 vuex - getters Vue_qf (23) - 状态管理 vuex - getters 分类: 文章 • 2025-02-09 12:28:10 1 vuex -getters 把原数据加工一下再返回 2 mutation 常量风格 3 actions Action 提交的是 mutation,而不是直接变更状态。 Action 可以包含任意异步操作。 this.$store.dispatch("type","payload") 可以做同步