From 177eaf0be8f0a238a8ed3d5d7d57dc770960019a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 1 Feb 2024 01:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E9=97=A8=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=B2=97=E4=BD=8D=E6=97=B6=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E6=89=93=E5=BC=80=E4=B8=8D=E5=8A=A0=E8=BD=BD=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mdp/sys/deptPost/DeptPostMng.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); + } } }