|
@@ -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(() => {
|