修正一级栏目可发内容

This commit is contained in:
xiao-fajia 2024-07-30 19:18:34 +08:00
parent b3f0d7f3a8
commit b69760e370

View File

@ -223,9 +223,14 @@ export default {
getCategoryList() {
getLeavesCategoryList().then(response => {
this.categoryList = response.data
let flag = false;
this.categoryList.forEach(item => {
if (item.id === this.$route.query.categoryId) {
this.form.categoryId = this.$route.query.categoryId.toString()
flag = true;
}
if (!flag){
this.form.categoryId = ""
}
})
})