修正一级栏目可发内容
This commit is contained in:
parent
b3f0d7f3a8
commit
b69760e370
@ -223,9 +223,14 @@ export default {
|
|||||||
getCategoryList() {
|
getCategoryList() {
|
||||||
getLeavesCategoryList().then(response => {
|
getLeavesCategoryList().then(response => {
|
||||||
this.categoryList = response.data
|
this.categoryList = response.data
|
||||||
|
let flag = false;
|
||||||
this.categoryList.forEach(item => {
|
this.categoryList.forEach(item => {
|
||||||
if (item.id === this.$route.query.categoryId) {
|
if (item.id === this.$route.query.categoryId) {
|
||||||
this.form.categoryId = this.$route.query.categoryId.toString()
|
this.form.categoryId = this.$route.query.categoryId.toString()
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
if (!flag){
|
||||||
|
this.form.categoryId = ""
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user