From 9ca581cca97e9ba95ff808f6b7a08c24a4758dbf Mon Sep 17 00:00:00 2001
From: DESKTOP-CVS3R96\我恁爹 <11>
Date: Fri, 11 Nov 2022 09:55:52 +0800
Subject: [PATCH] 9.55

---
 src/page/login/login.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/page/login/login.vue b/src/page/login/login.vue
index e2e12da..d720ffa 100644
--- a/src/page/login/login.vue
+++ b/src/page/login/login.vue
@@ -53,7 +53,7 @@
     v-show="alertShow"
     :closable="closable"
     :title="texts"
-    type="warning" center></el-alert>
+    :type="eltype" center></el-alert>
   </div>
 </template>
 <script>
@@ -76,6 +76,7 @@
       medium: "medium",
       alertShow:false,
       closable:false,
+      eltype:'warning',
       texts:"",
       dengl:false,
       loginBtn:false,
@@ -120,11 +121,19 @@
       if (data.status === 0) {
         this.$store.state.userInfo.phone = this.userName
         this.$store.state.userInfo.token = data.data.token
-
+        this.texts=data.msg
+        this.eltype='success'
+      this.alertShow=true
+      setTimeout(()=>{
+        this.alertShow=false
+        this.eltype='warning'
+        this.$router.push('/home')
+      },1000)
+      this.loginBtn = false;
         window.localStorage.clear()
         window.localStorage.setItem("USERTOKEN", data.data.token);
-        this.$router.push('/home')
-        this.loginBtn = false;
+        
+        
       } else {
         this.texts=data.msg
       this.alertShow=true

--
Gitblit v1.9.3