update @跳转bug

This commit is contained in:
huangzhen 2024-10-11 16:38:26 +08:00
parent 170d197533
commit 0230f76c95
1 changed files with 6 additions and 1 deletions

View File

@ -279,18 +279,23 @@ export default {
}
let params = {
path: detailPage[item.goods.type],
query: { id: item.goods.id }
query: { id: item.goods.id },
}
if (item.goods.group_id) { //
params.path = '/comProduct';
delete params.query.id;
params.query.group_id = item.goods.group_id;
return this.jump(params, type);
}
if (item.goods.type === 3) { // /
if ((item.info.channel === 1 && item.info.receive_mode === 2) || (item.info.channel === 3)) {
params.path = '/cmsLJJConfig';
return this.jump(params, type);
}
}
this.jump(params, type);
},
jump(params: any, type?: string) {
if (type === 'auto') {
this.$router.replace(params);
} else {