Commit 9ff481a1 authored by Xuguangxing's avatar Xuguangxing

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

parent 3aeee7ad
...@@ -66,7 +66,6 @@ export default { ...@@ -66,7 +66,6 @@ export default {
const addressList = { ...e, noAddr: true }; const addressList = { ...e, noAddr: true };
localStorage.set('addressList', addressList); localStorage.set('addressList', addressList);
this.$router.go(-1); // 返回上一页 this.$router.go(-1); // 返回上一页
// this.$router.push({ name: 'createOrder' });
}, },
toAdd() { toAdd() {
this.$router.push({ name: 'addressManage' }); this.$router.push({ name: 'addressManage' });
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
if (this.order) { if (this.order) {
this.$router.push({ this.$router.push({
name: 'createOrder', name: 'createOrder',
params: { addressList, orderAdder: this.order } params: { addressList, orderAdder: this.order, from: 'address' }
}); });
return; return;
} }
......
...@@ -103,6 +103,10 @@ export default { ...@@ -103,6 +103,10 @@ export default {
const groupId = this.$route.query.groupBuyGroupId; const groupId = this.$route.query.groupBuyGroupId;
if (this.$route.query.groupBuyGroupId) { if (this.$route.query.groupBuyGroupId) {
localStorage.set('groupBuyGroupId', groupId); localStorage.set('groupBuyGroupId', groupId);
} else {
if (this.$route.query.from != 'address') {
localStorage.remove('groupBuyGroupId', groupId);
}
} }
}, },
methods: { 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