1.如果this.xxx.yyy=‘zzz’;无法触发组件内的watch,可以用this.$set(this.xxx,‘yyy’,‘zzz’);
2.如果mapState,mapMutations映射store的变量和函数无效,确认一下页面是否有重复的methods:{}和computed: {}
uniapp vue 开发过程中的注意点
于 2023-06-26 13:40:55 首次发布
1.如果this.xxx.yyy=‘zzz’;无法触发组件内的watch,可以用this.$set(this.xxx,‘yyy’,‘zzz’);
2.如果mapState,mapMutations映射store的变量和函数无效,确认一下页面是否有重复的methods:{}和computed: {}