提交 542147cc authored 作者: zyx's avatar zyx

修改 提醒加验证

上级 f666c01e
module.exports = {
demain: 'dev.ezijing.com',
url: 'https://wmp-learning2.ezijing.com/api',
url: 'https://wmp-learning.ezijing.com/api',
apiBaseURL: '/',
others: {
url: '/login/is-login'
......
......@@ -249,7 +249,16 @@ export default {
},
/* 直接进直播 */
goLive() {
this.$router.push({ path: `/player/${this.newLiveMsg.course_id}/live/${this.newLiveMsg.live.id}` })
let flag = true
if (this.userInfo.is_open_course) {
const ids = this.userInfo.open_course_id || []
flag = ids.includes(this.newLiveMsg.live.id)
}
if (flag) {
this.$router.push({ path: `/player/${this.newLiveMsg.course_id}/live/${this.newLiveMsg.live.id}` })
} else {
this.$message.error('尚未开通该课程的观看权限')
}
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论