我有一个props ,我想用它来制作一个动态的mapGetters,但是mapGetters认为这些props 是未定义的,可能是因为计算结果是在props 之前加载的.有人知道我怎样才能让它充满活力吗?我的代码如下:
export default {
props: ['listType'],
components: {
addrow: AddRow
},
computed: {
...mapGetters({
list: `${this.listType}/list`,
current: 'Dropdown/current'
})
},
}