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

bug fixes

上级 189ecee7
...@@ -16,6 +16,6 @@ module.exports = { ...@@ -16,6 +16,6 @@ module.exports = {
others: { others: {
baseUrl: 'https://learn-api.ezijing.com', baseUrl: 'https://learn-api.ezijing.com',
loginUrl: 'https://login.ezijing.com/xlearn/login/index', loginUrl: 'https://login.ezijing.com/xlearn/login/index',
xtrainingUrl: 'https://xtraining.ezijing.com' xtrainingUrl: 'https://x-training.ezijing.com'
} }
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<app-container title="模拟考试"> <app-container title="模拟考试">
<template #header-right> <template #header-right>
<el-select v-model="courseId" @change="getExamList" placeholder="请选择课程" clearable style="width:300px"> <el-select v-model="courseId" @change="getExamList" placeholder="请选择课程" clearable style="width:300px">
<el-option v-for="item in courses" :key="item.id" :label="item.course_name" :value="item.id"></el-option> <el-option v-for="item in courseList" :key="item.id" :label="item.course_name" :value="item.id"></el-option>
</el-select> </el-select>
</template> </template>
<div class="exam-list"> <div class="exam-list">
...@@ -33,6 +33,11 @@ export default { ...@@ -33,6 +33,11 @@ export default {
examList: [] examList: []
} }
}, },
computed: {
courseList() {
return [{ id: '', course_name: '全部' }].concat(this.courses)
}
},
mounted() { mounted() {
this.getExamList() this.getExamList()
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论