Commit 9072d4c3 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent f76f001c
......@@ -342,13 +342,13 @@ export default {
}
},
},
// watch: {
// deptSearchVal(newVal) {
// if (newVal === "") {
// this.getDeptListData();
// }
// },
// },
watch: {
deptSearchVal(newVal) {
if (newVal === "") {
this.getDeptListData();
}
},
},
// 进入路由前
beforeRouteEnter(to, from, next) {
if (from.path === "/department/adddepartment") {
......@@ -535,8 +535,10 @@ export default {
});
},
// 部门搜索
onSearch() {
onSearch(val) {
if (val != "") {
this.getDeptListData();
}
},
// 窗口搜索
onSearchRight() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment