Compare commits
No commits in common. "d4db130917d7db5bbbe3d1cfce119e288f7dbe89" and "837428157440a7277d4cae0de010274461de90b2" have entirely different histories.
d4db130917
...
8374281574
@ -223,14 +223,9 @@ 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