|
|
@ -283,7 +283,7 @@ export default { |
|
|
|
const cid = this.courseId |
|
|
|
const cid = this.courseId |
|
|
|
const assessmentId = this.assessmentId |
|
|
|
const assessmentId = this.assessmentId |
|
|
|
let points = [] |
|
|
|
let points = [] |
|
|
|
if (pId) { |
|
|
|
if (pId && cache.judgmentIdList) { |
|
|
|
cache.judgmentIdList.map(e => { |
|
|
|
cache.judgmentIdList.map(e => { |
|
|
|
points.push({ |
|
|
|
points.push({ |
|
|
|
judgmentId: e |
|
|
|
judgmentId: e |
|
|
@ -310,7 +310,7 @@ export default { |
|
|
|
// 如果有缓存代码 |
|
|
|
// 如果有缓存代码 |
|
|
|
if (code) { |
|
|
|
if (code) { |
|
|
|
hasCache = 1 |
|
|
|
hasCache = 1 |
|
|
|
if (!newJudgmentId) newJudgmentId = i |
|
|
|
if (newJudgmentId === '') newJudgmentId = i |
|
|
|
e.code = code |
|
|
|
e.code = code |
|
|
|
} |
|
|
|
} |
|
|
|
resolve() |
|
|
|
resolve() |
|
|
@ -329,7 +329,6 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
localStorage.removeItem('codeCache') // 恢复代码后清除本地缓存 |
|
|
|
localStorage.removeItem('codeCache') // 恢复代码后清除本地缓存 |
|
|
|
this.projectId = projectId |
|
|
|
this.projectId = projectId |
|
|
|
// this.judgmentId = newJudgmentId |
|
|
|
|
|
|
|
// 如果是本地缓存里有项目id,则要再次获取项目详情,取判分列表再次赋值;本地没有缓存则取只恢复第一个判分点的代码 |
|
|
|
// 如果是本地缓存里有项目id,则要再次获取项目详情,取判分列表再次赋值;本地没有缓存则取只恢复第一个判分点的代码 |
|
|
|
if (pId) { |
|
|
|
if (pId) { |
|
|
|
this.getProDetail().then(() => { |
|
|
|
this.getProDetail().then(() => { |
|
|
|