ll
liukangdong
2024-10-18 0ed2002103cfe3d0892ee2468d98b7d3fad8e7b9
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: {