This commit is contained in:
王子琦
2026-01-16 15:33:29 +08:00
parent 7675b4b8dc
commit 7a50853cac
5 changed files with 47 additions and 9 deletions

View File

@@ -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}`);