Compare commits

...

2 Commits

Author SHA1 Message Date
xiao-fajia
d4db130917 Merge branch 'main' of http://122.51.230.86:3000/dianliang/school_website 2024-07-30 19:18:40 +08:00
xiao-fajia
b69760e370 修正一级栏目可发内容 2024-07-30 19:18:34 +08:00

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 = ""
}
})
})