add
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<div class="page">
|
||||
<el-card>
|
||||
<el-button type="text" @click="$router.push('/')">返回首页</el-button>
|
||||
@@ -101,6 +101,9 @@ export default {
|
||||
addressId: this.addressId,
|
||||
items: [{ productId: this.product.id, quantity: this.quantity }]
|
||||
}).then((res) => {
|
||||
if (!res || !res.data || res.data.code !== 0 || !res.data.data) {
|
||||
return;
|
||||
}
|
||||
this.$message.success('下单成功');
|
||||
const order = res.data.data.order;
|
||||
this.$router.push(`/orders?highlight=${order.id}`);
|
||||
|
||||
Reference in New Issue
Block a user