From 0ed2002103cfe3d0892ee2468d98b7d3fad8e7b9 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 18 十月 2024 15:45:06 +0800
Subject: [PATCH] ll

---
 admin/src/components/common/CommonHeader.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/admin/src/components/common/CommonHeader.vue b/admin/src/components/common/CommonHeader.vue
index 8af6eef..4b5996f 100644
--- a/admin/src/components/common/CommonHeader.vue
+++ b/admin/src/components/common/CommonHeader.vue
@@ -40,6 +40,8 @@
     <GlobalAlertWindow
       title="淇敼瀵嗙爜"
       :visible.sync="visible.changePwd"
+      :showClose="!userInfo.needChangePwd || userInfo.needChangePwd == '1'"
+      :showCancel="userInfo.needChangePwd && userInfo.needChangePwd == '0'"
       @confirm="confirmChangePwd"
       @close="visible.changePwd = false"
     >
@@ -62,7 +64,7 @@
             v-model="changePwdData.form.newPwd"
             type="password"
             placeholder="璇疯緭鍏ユ柊瀵嗙爜"
-            maxlength="30"
+            maxlength="20"
             show-password
           ></el-input>
         </el-form-item>
@@ -71,7 +73,7 @@
             v-model="changePwdData.form.confirmPwd"
             type="password"
             placeholder="璇峰啀娆¤緭鍏ユ柊瀵嗙爜"
-            maxlength="30"
+            maxlength="20"
             show-password
           ></el-input>
         </el-form-item>
@@ -136,7 +138,10 @@
     // }
   },
   mounted() {
-    console.log('userInfo',this.userInfo);
+    // console.log('userInfo',this.userInfo);
+    if(!this.userInfo.needChangePwd || this.userInfo.needChangePwd == '0'){
+      this.visible.changePwd = true
+    }
     
   },
   filters: {

--
Gitblit v1.9.3