diff --git a/src/views/mdp/sys/deptPost/DeptPostMng.vue b/src/views/mdp/sys/deptPost/DeptPostMng.vue index f071c6d..bec37cf 100644 --- a/src/views/mdp/sys/deptPost/DeptPostMng.vue +++ b/src/views/mdp/sys/deptPost/DeptPostMng.vue @@ -53,6 +53,7 @@ }, watch: { visible(val){ + debugger; if(val==true){ this.getDeptPosts(); this.getPosts(); @@ -161,7 +162,11 @@ components: { //在下面添加其它组件 }, - mounted() { + mounted() { + if(this.visible==true){ + this.getDeptPosts(); + this.getPosts(); + } } }