在课程页面组件的mounted钩子中挂载全局方法setCourseUrl,用于重置当前课程的url地址
@@ -1599,6 +1599,12 @@ export default {
_this.goToCourse()
}
},
+ mounted() {
+ let _this = this
+ window.setCourseUrl = function(){
+ _this.courseUrl = ''
+ }
};
</script>