Browse Source

最终版1

冯诚 2 years ago
parent
commit
e0937ab86e
1 changed files with 3 additions and 1 deletions
  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(() => {