This commit is contained in:
zhaofang
2022-10-28 10:44:17 +08:00
parent aef9017991
commit 540b1d8d7a
17 changed files with 86 additions and 82 deletions

View File

@@ -269,26 +269,26 @@ export default {
},
jumpRouter(item) {
if (item.published) {
if (item.type == 10) {
// if (item.type == 10) {
// let routeData = this.$router.resolve({ path: '/course/micro?id='+item.id});
// window.open(this.webBaseUrl+routeData.href, '_blank');
// window.open(this.webBaseUrl + '/course/micro?id=' + item.id, '_blank');
this.$router.push({path:'/course/micro',query:{id:item.id}})
}
if (item.type == 20) {
// this.$router.push({path:'/course/micro',query:{id:item.id}})
// }
// if (item.type == 20) {
// let routeData = this.$router.resolve({ path: '/course/detail?id='+item.id});
// window.open(this.webBaseUrl+routeData.href, '_blank');
// window.open(this.webBaseUrl + '/course/detail?id=' + item.id, '_blank');
this.$router.push({path:'/course/detail',query:{id:item.id}})
}
// }
} else {
if (item.type == 10) {
// window.open(`${this.webBaseUrl}/course/microPreview?id=${item.id}`);
this.$router.push({path:'/course/microPreview',query:{id:item.id}})
} else {
// if (item.type == 10) {
// // window.open(`${this.webBaseUrl}/course/microPreview?id=${item.id}`);
// this.$router.push({path:'/course/microPreview',query:{id:item.id}})
// } else {
// window.open(`${this.webBaseUrl}/course/rePreview?id=${item.id}`);
this.$router.push({path:'/course/rePreview',query:{id:item.id}})
}
// }
}
},
findList() {