|
@@ -47,8 +47,8 @@ export default { |
|
@@ -47,8 +47,8 @@ export default { |
47
|
|
47
|
|
48
|
// 获取订单数据
|
48
|
// 获取订单数据
|
49
|
asyncData({ store, router }) {
|
49
|
asyncData({ store, router }) {
|
50
|
- const { owner, status } = router.params;
|
|
|
51
|
- store.dispatch("order/orderList/fetchOrderList", { owner, status });
|
50
|
+ // const { owner, status } = router.params;
|
|
|
51
|
+ // store.dispatch("order/orderList/fetchOrderList", { owner, status });
|
52
|
},
|
52
|
},
|
53
|
mounted() {
|
53
|
mounted() {
|
54
|
const { owner, status } = this.$route.params;
|
54
|
const { owner, status } = this.$route.params;
|
|
@@ -60,6 +60,14 @@ export default { |
|
@@ -60,6 +60,14 @@ export default { |
60
|
const { owner, status } = this.$route.params;
|
60
|
const { owner, status } = this.$route.params;
|
61
|
this.fetchOrderList({ owner, status });
|
61
|
this.fetchOrderList({ owner, status });
|
62
|
}
|
62
|
}
|
|
|
63
|
+ },
|
|
|
64
|
+ watch: {
|
|
|
65
|
+ $route() {
|
|
|
66
|
+ console.log("---------route change----------");
|
|
|
67
|
+
|
|
|
68
|
+ const { owner, status } = this.$route.params;
|
|
|
69
|
+ this.fetchOrderList({ owner, status });
|
|
|
70
|
+ }
|
63
|
}
|
71
|
}
|
64
|
};
|
72
|
};
|
65
|
</script>
|
73
|
</script>
|