From 79e073eab68cad5d0dd894a6df912a99c82a02c6 Mon Sep 17 00:00:00 2001
From: pyt <626651354@qq.com>
Date: 星期三, 08 一月 2025 16:28:45 +0800
Subject: [PATCH] 1

---
 src/component/userInfo.vue |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/component/userInfo.vue b/src/component/userInfo.vue
index befd0b4..e06ca59 100644
--- a/src/component/userInfo.vue
+++ b/src/component/userInfo.vue
@@ -1,5 +1,5 @@
 <template>
-    <el-dialog :visible.sync="show" :show-close="false" width="80%" top="51px">
+    <el-dialog :visible.sync="show" :show-close="false" width="80%" top="51px" :close-on-click-modal="false">
         <div class="content">
             <el-form label-position="left" label-width="105px" :model="form" :rules="rules">
                 <div class="title">个人信息</div>
@@ -74,7 +74,6 @@
     props: ['show'],
     data() {
         return {
-            dialogVisible: this.show,
             form: {
                 name: '',
                 region: '',
@@ -88,18 +87,11 @@
             }
         };
     },
-    created() {
-        console.log(this.$store.state.userInfo, '111');
-    },
     watch: {
         show(val) {
-            this.dialogVisible = val
-        },
-        dialogVisible(val) {
-            this.$emit('update:show', val);
-        },
-        mounted() {
-            this.dialogVisible = this.show;
+            if (val) {
+                console.log(this.$store.state.userInfo, '111');
+            }
         }
     }
 };

--
Gitblit v1.7.1