diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index c819cba..fe861e7 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -293,10 +293,13 @@ export default { } }) } else { - _this.type = _this.type || parseInt(_this.$yroute.query.type) || 0; - _this.changeType(_this.type); + } }, + onLoad() { + this.type = this.type || parseInt(this.$yroute.query.type) || 0; + this.changeType(this.type); + }, methods: { handleBody() { this.orderList.forEach((e) => {