Commit 536101d7 authored by IvyXia123's avatar IvyXia123

提交

parent 54826161
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
lessonData.classID=this.classID; lessonData.classID=this.classID;
lessonData.nowTime = Date.parse(new Date()); lessonData.nowTime = Date.parse(new Date());
lessonData.course_title =this.secActions.course_title lessonData.course_title =this.secActions.course_title
// console.log(lessonData) console.log(lessonData, 8787)
localStorage.setItem('lessonDetail',JSON.stringify(lessonData)); localStorage.setItem('lessonDetail',JSON.stringify(lessonData));
// console.log(query) // console.log(query)
// debugger // debugger
...@@ -562,6 +562,7 @@ ...@@ -562,6 +562,7 @@
getLessonDetailApi(this.secActions.id,data.id,data.ele_id).then(res=>{ getLessonDetailApi(this.secActions.id,data.id,data.ele_id).then(res=>{
res.content = JSON.parse(res.content); res.content = JSON.parse(res.content);
this.thisLesson = res; this.thisLesson = res;
console.log(this.thisLesson, 8787)
this.thisLesson.id = data.ele_id.toString(); this.thisLesson.id = data.ele_id.toString();
this.thisLesson.categoryId = data.id; this.thisLesson.categoryId = data.id;
this.thisLesson.domTitle = data.name; this.thisLesson.domTitle = data.name;
......
...@@ -449,18 +449,16 @@ ...@@ -449,18 +449,16 @@
scale: 2, scale: 2,
letterRendering: true, letterRendering: true,
useCORS: true, useCORS: true,
logging: true logging: true,
}) autoSize:true
.then(canvas => { }).then(canvas => {
setTimeout(() => { setTimeout(() => {
this.animationBg = true; this.animationBg = true;
},500) },500)
let dataURL = canvas.toDataURL("image/jpg", 1.0); var dataURL = canvas.toDataURL("image/jpg", 1.0);
this.canvasData = dataURL; this.canvasData = dataURL;
}) })
.catch(res => { .catch(res => {
alert(res);
console.log();
}); });
} }
}); });
......
...@@ -413,6 +413,7 @@ ...@@ -413,6 +413,7 @@
getLessonDetailApi(dataObj.periods_id, dataObj.id, dataObj.ele_id).then(res=>{ getLessonDetailApi(dataObj.periods_id, dataObj.id, dataObj.ele_id).then(res=>{
res.content = JSON.parse(res.content); res.content = JSON.parse(res.content);
this.thisLesson = res; this.thisLesson = res;
localStorage.setItem('lessonDetail',JSON.stringify(res));
this.thisLesson.id = dataObj.ele_id.toString(); this.thisLesson.id = dataObj.ele_id.toString();
this.thisLesson.categoryId = dataObj.id; this.thisLesson.categoryId = dataObj.id;
this.thisLesson.domTitle = dataObj.name; this.thisLesson.domTitle = dataObj.name;
......
...@@ -14,6 +14,7 @@ axios.defaults.baseURL = ''; ...@@ -14,6 +14,7 @@ axios.defaults.baseURL = '';
//http request 拦截器 //http request 拦截器
axios.interceptors.request.use( axios.interceptors.request.use(
config => { config => {
console.log(config)
// 获取token // 获取token
// process.env.versionTime // process.env.versionTime
let versiontime = '09021400'; let versiontime = '09021400';
......
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