推送看课

parent 8aae6476
......@@ -144,7 +144,7 @@
ref="bbda"
v-if="!userCourse.start_periods_id"
@click="toBbda($event)"
></div>
></div>
<!-- <div class="btn toBbda" ref="bbda" @click="toBbda($event)">
</div>-->
<div
......
......@@ -323,8 +323,9 @@
// 从微信推送进入
getCourseInfoApi(this.$route.query.periods_id).then(res =>{
localStorage.setItem('userCourse','');
this.userCourse = Object.assign({},res)
localStorage.setItem('userCourse',JSON.stringify(this.userCourse));
// this.$commom.deepCopy(res)
this.userCourse = this.$common.deepCopy(res)
localStorage.setItem('userCourse',JSON.stringify(res));
this.setCourse()
})
}else{
......@@ -334,8 +335,8 @@
}else{
getCourseInfoApi().then(res =>{
localStorage.setItem('userCourse','');
this.userCourse = Object.assign({},res)
localStorage.setItem('userCourse',JSON.stringify(this.userCourse));
this.userCourse = this.$common.deepCopy(res)
localStorage.setItem('userCourse',JSON.stringify(res));
this.setCourse()
})
}
......
......@@ -37,12 +37,11 @@ const errorHandler = (error, vm)=>{
}
Vue.config.errorHandler = errorHandler;
Vue.prototype.$throw = (error)=> errorHandler(error,this);
Vue.prototype.$common = common
//VConsole关闭屏蔽代码
if (process.env.NODE_ENV != 'production') {
new VConsole();
}
// if (process.env.NODE_ENV != 'production') {
// new VConsole();
// }
router.beforeEach((to, from, next) => {
next()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment