Commit 8bd68191 authored by 徐光星's avatar 徐光星

Merge branch 'feat/group-buy' into 'master'

fix: 接口增加延迟

See merge request !8
parents 6e039e25 0de878e9
......@@ -409,7 +409,11 @@ export default {
if (res.groupBuyInfo?.joinGroup) {
// 如果当前用户参了团到拼团详情
const query = { ...this.$route.query };
return this.$router.replace({ name: 'groupBuySkuInfoSmallPic', query });
setTimeout(() => {
// 延时用于解决短时间内刷detail接口的问题
this.$router.replace({ name: 'groupBuySkuInfoSmallPic', query });
}, 500);
return;
}
firstGroupShare(
{
......
......@@ -213,6 +213,7 @@ export default {
},
async init(detailParam) {
const [res] = await goods.detailInfo(detailParam);
try {
firstGroupShare(
{
...this.$route.query,
......@@ -260,6 +261,9 @@ export default {
} catch (error) {
console.error(error);
}
} catch (e) {
console.log(e);
}
},
setStartStatus(data) {
const currentTime = new Date(data.currentTime.replace(/\-/g, '/')).getTime();
......
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