From 5186227a467bd34dc253e64b23bc96d3a07bb399 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 17 十一月 2021 17:39:53 +0800
Subject: [PATCH] 添加用户权限控制

---
 src/views/login/index.vue |   23 +++--------------------
 1 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 33680f1..9839af0 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -1,11 +1,5 @@
 <template>
   <div class="login-container">
-    <el-alert
-      title="beautiful boys and girls娆㈣繋鍔犲叆vue-admin-beautifulQQ缇わ細972435319"
-      type="success"
-      :closable="false"
-      style="position: fixed"
-    ></el-alert>
     <el-row>
       <el-col :xs="24" :sm="24" :md="12" :lg="16" :xl="16">
         <div style="color: transparent">鍗犱綅绗�</div>
@@ -18,8 +12,7 @@
           class="login-form"
           label-position="left"
         >
-          <div class="title">hello !</div>
-          <div class="title-tips">娆㈣繋鏉ュ埌{{ title }}锛�</div>
+          <div class="title-tips">娆㈣繋浣跨敤{{ title }}锛�</div>
           <el-form-item style="margin-top: 40px" prop="username">
             <span class="svg-container svg-container-admin">
               <vab-icon :icon="['fas', 'user']" />
@@ -64,9 +57,6 @@
           >
             鐧诲綍
           </el-button>
-          <router-link to="/register">
-            <div style="margin-top: 20px">娉ㄥ唽</div>
-          </router-link>
         </el-form>
       </el-col>
     </el-row>
@@ -95,7 +85,7 @@
     };
     const validatePassword = (rule, value, callback) => {
       if (!isPassword(value)) {
-        callback(new Error("瀵嗙爜涓嶈兘灏戜簬6浣�"));
+        callback(new Error("瀵嗙爜涓嶈兘灏戜簬5浣�"));
       } else {
         callback();
       }
@@ -142,13 +132,6 @@
   beforeDestroy() {
     document.body.style.overflow = "auto";
   },
-  mounted() {
-    this.form.username = "admin";
-    this.form.password = "123456";
-    setTimeout(() => {
-      this.handleLogin();
-    }, 3000);
-  },
   methods: {
     handlePassword() {
       this.passwordType === "password"
@@ -170,7 +153,7 @@
                   ? "/"
                   : this.redirect;
               this.$router.push(routerPath).catch(() => {});
-              this.loading = false;
+              this.loading = true;
             })
             .catch(() => {
               this.loading = false;

--
Gitblit v1.8.0