|
@@ -28,13 +28,13 @@ import { state as rootState, getCurrentOrder } from '@/store'
|
|
|
|
|
|
const step = ref(0)
|
|
|
const Component = computed(() => [StepOne, StepTwo, StepThree][step.value])
|
|
|
-const { from, invitee, id, renewal } = useRoute().query as any
|
|
|
+const { from, invitee, renewal } = useRoute().query as any
|
|
|
|
|
|
state.form.from = from || ''
|
|
|
state.form.invitor = invitee || ''
|
|
|
-if (id) {
|
|
|
- renewal === 'true' && (state.form.renewal = +id)
|
|
|
- getCurrentOrder(id).then(() => {
|
|
|
+if (renewal) {
|
|
|
+ state.form.renewal = +renewal
|
|
|
+ getCurrentOrder(renewal).then(() => {
|
|
|
const order = rootState.currentOrder
|
|
|
if (state.productList.some(item => item.id === +order.product_id)) {
|
|
|
state.form.product_id = +order.product_id
|