From b5a4d5f1ed9509dd304a21d27058ab1b794064f4 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期三, 08 一月 2025 17:20:50 +0800
Subject: [PATCH] header和home冲突

---
 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