Commit d297548c by 胡悦

feat(HomeFrame): 添加学习中心权限限制检查逻辑

在路由拦截时增加学习中心权限限制检查,当检测到限制时显示权限弹窗并阻止导航
1 parent 4f0c3eaf
......@@ -216,6 +216,7 @@
style="overflow: hidden;"
>
<StudyCenterPermissionPopup
:lockReason="lockReason"
@confirm="handleStudyPermissionConfirm"
/>
</StudyPopup>
......@@ -301,7 +302,8 @@ export default {
showStudyPermissionPopup: false,
courseInfo: {
title: ''
}
},
lockReason: 0
}
},
created() {
......@@ -645,6 +647,10 @@ export default {
if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) {
if (await this.inspectionOfProhibitionBill()) return
if (await this.getLimitRecord()) {
this.showStudyPermissionPopup = true
return
}
}
if (await this.checkDailyReport(sceneType != 7)) return
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!