Showing
1 changed file
with
1 additions
and
2 deletions
@@ -35,6 +35,7 @@ export default { | @@ -35,6 +35,7 @@ export default { | ||
35 | async onAction(action) { | 35 | async onAction(action) { |
36 | const { owner } = this.$route.params; | 36 | const { owner } = this.$route.params; |
37 | const { orderCode } = this.order; | 37 | const { orderCode } = this.order; |
38 | + const { productId, storageId } = this.order.goodsInfo; | ||
38 | 39 | ||
39 | switch (action.name) { | 40 | switch (action.name) { |
40 | case orderActionsMap.DEL_ORDER.name: | 41 | case orderActionsMap.DEL_ORDER.name: |
@@ -52,13 +53,11 @@ export default { | @@ -52,13 +53,11 @@ export default { | ||
52 | }).show(); | 53 | }).show(); |
53 | break; | 54 | break; |
54 | case orderActionsMap.BUY_AGAIN.name: | 55 | case orderActionsMap.BUY_AGAIN.name: |
55 | - const { productId } = this.order.goodsInfo; | ||
56 | this.$router.push({ | 56 | this.$router.push({ |
57 | path: `/xianyu/product/${productId}.html` | 57 | path: `/xianyu/product/${productId}.html` |
58 | }); | 58 | }); |
59 | break; | 59 | break; |
60 | case orderActionsMap.SOLD_AGAIN.name: | 60 | case orderActionsMap.SOLD_AGAIN.name: |
61 | - const { productId, storageId } = this.order.goodsInfo; | ||
62 | this.$router.push({ | 61 | this.$router.push({ |
63 | path: "/xianyu/order/sellconfirm.html", | 62 | path: "/xianyu/order/sellconfirm.html", |
64 | query: { productId, storageId } | 63 | query: { productId, storageId } |
-
Please register or login to post a comment