vue:当父组件改变子组件的props 却不变

在子组件增加watch监听

watch: {
  'oState': function (val) {
    this.getOrderList({orderStatus: this.getOrderState(this.oState), pageSize: 1})
  }
},

猜你喜欢

转载自blog.csdn.net/weixin_41143662/article/details/84303304