提交 722cb359 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复数据未加载完成,进入大作业页面出错的问题

上级 c50df1d1
...@@ -66,12 +66,12 @@ export default { ...@@ -66,12 +66,12 @@ export default {
}, },
methods: { methods: {
loadAjax () { loadAjax () {
const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' }) // const loading = this.$loading({ lock: true, text: '', spinner: '', background: 'rgba(255, 255, 255, 0.9)' })
api[this.params.request](this.params) api[this.params.request](this.params)
.then(json => { .then(json => {
this.discussList = json this.discussList = json
}) })
.catch(e => { this.$message.error(e.message) }).finally(() => { loading.close() }) .catch(e => { this.$message.error(e.message) }).finally(() => { /* loading.close() */ })
}, },
/** /**
* 跳转到对应 问题详情页 * 跳转到对应 问题详情页
......
...@@ -238,31 +238,7 @@ export default { ...@@ -238,31 +238,7 @@ export default {
isShow: false, isShow: false,
chapterList: { chapterList: {
currentChapterId: '11', // 当前章节id currentChapterId: '11', // 当前章节id
course: [{ course: []
title: '第一章:测试章节',
isUp: true,
chapters: [
// { id: '11', time: '28:18', name: '1.1 现值(PV)和终值(FV)' },
{ id: '12', time: '19:09', name: '1.2 测试课程' }
]
}, {
title: '第二章:证券估值',
isUp: true,
chapters: [
// { id: '21', time: '27:49', name: '2.1 债券和股票的现金流贴现估值方法' },
// { id: '22', time: '16:04', name: '2.2 债券评级及债券协议' },
// { id: '23', time: '', name: '公司金融第二周测验' },
// { id: '24', time: '', name: '公司金融第二周作业' }
]
}, {
title: '课程大作业',
isUp: true,
chapters: []
}, {
title: '课程资料',
isUp: true,
chapters: []
}]
} }
}, { }, {
title: '课程讨论', title: '课程讨论',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论