Compare commits

..

No commits in common. "d4db130917d7db5bbbe3d1cfce119e288f7dbe89" and "837428157440a7277d4cae0de010274461de90b2" have entirely different histories.

View File

@ -223,14 +223,9 @@ 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 = ""
} }
}) })
}) })