mapGetters 工具函数会将store中的getter映射到局部计算属性中。 import {mapGetters} from 'vuex' export default{ computed:{ ...mapGetters([ //使用对象扩展操作符 ...
確定! 回上一頁