Commit fbe61bee authored by Aria's avatar Aria

fix bugs

parent 6d462310
Pipeline #19463 passed with stage
in 57 seconds
......@@ -11,8 +11,8 @@ class OnlineService extends Service {
async getOption() {
const { ctx } = this;
// 分类
const cats = await ctx.classModel.V4.CourseOnlineCat.findAll({ where: { status: 'online', is_deleted: 0 }, attributes: [ 'id', 'name' ], raw: true });
cats.push({ id: 0, name: '全部' });
let cats = await ctx.classModel.V4.CourseOnlineCat.findAll({ where: { status: 'online', is_deleted: 0 }, attributes: [ 'id', 'name' ], raw: true });
cats = [{ id: 0, name: '全部' }].concat(cats);
// 年龄段
const ages = [ '全部', '学龄前', '幼儿园', '小学', '初中', '高中' ];
// 课程状态
......
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