Commit 60de317b by 陈超

T

parent e2b98b3a
...@@ -322,11 +322,17 @@ ...@@ -322,11 +322,17 @@
}, },
created: function(){ created: function(){
document.title = "全部课程" document.title = "全部课程"
this.onInit()
},
methods: {
onInit: function() {
let p = {:json_encode($selCate)}; let p = {:json_encode($selCate)};
console.log(p[this.cate]) if(p[this.cate]) {
this.onCondition(this.cate, p[this.cate].title, 'category') this.onCondition(this.cate, p[this.cate].title, 'category')
this.selected = this.conditions
}
}, },
methods: {
//Helper //Helper
onCondition: function(id, title, key) { onCondition: function(id, title, key) {
......
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