|
@@ -36,7 +36,9 @@ if (id) {
|
|
|
renewal === 'true' && (state.form.renewal = +id)
|
|
|
getCurrentOrder(id).then(() => {
|
|
|
const order = rootState.currentOrder
|
|
|
- state.form.product_id = +order.product_id
|
|
|
+ if (state.productList.some(item => item.id === +order.product_id)) {
|
|
|
+ state.form.product_id = +order.product_id
|
|
|
+ }
|
|
|
state.form.subscribe_type = +order.subscribe_type === 1 ? 'month' : 'year'
|
|
|
state.form.brand_id = +order.brand_id
|
|
|
state.form.phone_id = +order.phone_id
|