Commit 224fe3e0 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent 644674bc
...@@ -357,13 +357,13 @@ export default { ...@@ -357,13 +357,13 @@ export default {
} }
}, },
}, },
// watch: { watch: {
// deptSearchVal(newVal) { deptSearchVal(newVal) {
// if (newVal === "") { if (newVal === "") {
// this.getDeptListData(); this.getDeptListData();
// } }
// }, },
// }, },
// 进入路由前 // 进入路由前
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
if (from.path === "/department/adddepartment") { if (from.path === "/department/adddepartment") {
...@@ -564,8 +564,10 @@ export default { ...@@ -564,8 +564,10 @@ export default {
this.getWindowListData(); this.getWindowListData();
}, },
// 左边搜索 // 左边搜索
onSearch() { onSearch(val) {
this.getDeptListData(); if (val != "") {
this.getDeptListData();
}
}, },
// 右边搜索 // 右边搜索
onSearchRight() { 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