Bladeren bron

最终版1

冯诚 2 jaren geleden
bovenliggende
commit
e0937ab86e
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      src/pages/fill-order/index.vue

+ 3 - 1
src/pages/fill-order/index.vue

@@ -33,7 +33,9 @@ const { from, invitee, renewal, pid } = useRoute().query as any
 
 state.form.from = from || (renewal ? 'renew' : '')
 state.form.invitor = invitee || ''
-if (pid) state.form.product_id = +pid
+if (pid && state.productList.some(v => v.id === +pid)) {
+  state.form.product_id = +pid
+}
 if (renewal) {
   state.form.renewal = +renewal
   getCurrentOrder(renewal).then(() => {