Compare commits
2 Commits
8374281574
...
d4db130917
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d4db130917 | ||
![]() |
b69760e370 |
@ -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 = ""
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user