冯诚 hai 1 ano
pai
achega
e0937ab86e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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(() => {