From 53332ecb2d4126c7dc871036cdaeea3896efd30f Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 22 七月 2024 16:11:48 +0800
Subject: [PATCH] 调整页面刷新重定向404问题

---
 Source/plt-web/plt-web-ui/src/page/login/userlogin.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/page/login/userlogin.vue b/Source/plt-web/plt-web-ui/src/page/login/userlogin.vue
index a3ff8b0..9122bf3 100644
--- a/Source/plt-web/plt-web-ui/src/page/login/userlogin.vue
+++ b/Source/plt-web/plt-web-ui/src/page/login/userlogin.vue
@@ -24,7 +24,7 @@
                   v-model="loginForm.username"
                   auto-complete="off"
                   :placeholder="$t('login.username')">
-          <i slot="prefix" class="icon-yonghu"/>
+          <i slot="prefix" class="icon-yonghu" style="color: white"/>
         </el-input>
       </el-form-item>
       <el-form-item prop="password">
@@ -34,8 +34,8 @@
                   v-model="loginForm.password"
                   auto-complete="off"
                   :placeholder="$t('login.password')">
-          <i class="el-icon-view el-input__icon" slot="suffix" @click="showPassword"/>
-          <i slot="prefix" class="icon-mima"/>
+          <i class="el-icon-view el-input__icon" slot="suffix" @click="showPassword" style="color: white"/>
+          <i slot="prefix" class="icon-mima" style="color: white"/>
         </el-input>
       </el-form-item>
 
@@ -74,7 +74,7 @@
           //鐢ㄦ埛鍚�
           username: "admin",
           //瀵嗙爜
-          password: "admin",
+          password: "",
           selectInput:'',
           //涓嬫媺input鏁版嵁
           value:'绠$悊缁�',
@@ -173,7 +173,10 @@
               text: '鐧诲綍涓�,璇风◢鍚庛�傘�傘��',
               spinner: "el-icon-loading"
             });
-            this.$store.dispatch("LoginByUsername", this.loginForm).then(() => {
+            this.$store.dispatch("LoginByUsername", this.loginForm).then((data) => {
+              if(data.obj.passwordInfo){
+                this.$message.warning(data.obj.passwordInfo);
+              }
               if (this.website.switchMode) {
                 const deptId = this.userInfo.deptOid;
                 const roleId = this.userInfo.userOid;
@@ -186,7 +189,7 @@
                   });
                   return false;
                 }
-              }
+              };
               this.$router.push({path: this.tagWel.value});
               loading.close();
             }).catch((err) => {

--
Gitblit v1.9.3