Commit 9ff481a1 authored by Xuguangxing's avatar Xuguangxing

feat: 修复确认订单携带groupId有可能失效的问题

parent 3aeee7ad
......@@ -66,7 +66,6 @@ export default {
const addressList = { ...e, noAddr: true };
localStorage.set('addressList', addressList);
this.$router.go(-1); // 返回上一页
// this.$router.push({ name: 'createOrder' });
},
toAdd() {
this.$router.push({ name: 'addressManage' });
......
......@@ -159,7 +159,7 @@ export default {
if (this.order) {
this.$router.push({
name: 'createOrder',
params: { addressList, orderAdder: this.order }
params: { addressList, orderAdder: this.order, from: 'address' }
});
return;
}
......
......@@ -103,6 +103,10 @@ export default {
const groupId = this.$route.query.groupBuyGroupId;
if (this.$route.query.groupBuyGroupId) {
localStorage.set('groupBuyGroupId', groupId);
} else {
if (this.$route.query.from != 'address') {
localStorage.remove('groupBuyGroupId', groupId);
}
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment