From 93845180efe4380609a2deb4dc22dd0523dbcd2a Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 19 六月 2023 20:58:30 +0800
Subject: [PATCH] 代码整合

---
 Source/UBCS-WEB/src/components/template/SetPersonnel.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
index 07ebde0..a03ab9d 100644
--- a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
+++ b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue
@@ -73,6 +73,10 @@
     watch: {
         visible(n) {
             this.dialogVisible = n;
+            if(n){
+              this.apiInit()
+              this.apiDict()
+            }
         },
         dialogVisible(n) {
             this.$emit('update:visible', n)
@@ -98,8 +102,8 @@
     },
 
     mounted() {
-        this.apiInit()
-        this.apiDict()
+        // this.apiInit()
+        // this.apiDict()
     },
     methods: {
         saveParam() {
@@ -254,4 +258,4 @@
     justify-content: end;
     padding-bottom: 10px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3