...
|
...
|
@@ -47,8 +47,8 @@ export default { |
|
|
|
|
|
// 获取订单数据
|
|
|
asyncData({ store, router }) {
|
|
|
const { owner, status } = router.params;
|
|
|
store.dispatch("order/orderList/fetchOrderList", { owner, status });
|
|
|
// const { owner, status } = router.params;
|
|
|
// store.dispatch("order/orderList/fetchOrderList", { owner, status });
|
|
|
},
|
|
|
mounted() {
|
|
|
const { owner, status } = this.$route.params;
|
...
|
...
|
@@ -60,6 +60,14 @@ export default { |
|
|
const { owner, status } = this.$route.params;
|
|
|
this.fetchOrderList({ owner, status });
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
$route() {
|
|
|
console.log("---------route change----------");
|
|
|
|
|
|
const { owner, status } = this.$route.params;
|
|
|
this.fetchOrderList({ owner, status });
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|