diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index d66574f7..10e9b6af 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -447,8 +447,10 @@ export default { this.course[i] = ""; if (i === "sysType1") { this.types.sysTypes = ""; - // this.types.oneSubList = []; - // this.types.towSubList = []; + this.types.subOne = ""; + this.types.subTow = ""; + this.types.oneSubList = []; + this.types.towSubList = []; } if (i === "sysType2") { this.types.subOne = ""; @@ -492,6 +494,8 @@ export default { list = this.optionsList.find(item => { return item.id === num; }); + } else { + // this.types.towSubList = []; } if (list && list.children) { this.types.oneSubList = list.children; @@ -510,7 +514,7 @@ export default { } }); } else { - this.types.oneSubList = []; + this.types.towSubList = []; } this.searchData(); },