From bc5d103d58d3c421ae5f95d7cfa71a125e2414fc Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 08 八月 2023 17:43:56 +0800
Subject: [PATCH] 1.编码规则完成30%

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

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 65d42f8..58b68fe 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -103,7 +103,7 @@
         <el-button
           :loading="loading"
           type="primary"
-          style="width:100%;margin-top:20px;letter-spacing: 10px"
+          style="width:100%;margin-top:30px;letter-spacing: 10px;height: 40px;"
           @click.native.prevent="handleLogin"
         >鐧诲綍
         </el-button>
@@ -221,10 +221,6 @@
             if (getCookie('code') === '302') {
               this.dialogVisible = true
             } else {
-              // console.log(typeof getCookie('description'))
-              // console.log(getCookie('description') === '')
-              // this.$store.state.settings.orgType = getCookie('description')// 缁勭粐绫诲瀷
-              // console.log(this.$store.state.settings.orgType, 88)
               this.$router.push({ path: this.redirect || '/' })
             }
             this.loading = false
@@ -239,38 +235,17 @@
     },
 
     dialogVisibleCancel() {
-      // removeCookie('username')
-      // removeCookie('admin')
-      // removeCookie('navTabId')
-      // removeCookie('usertype')
-      // removeCookie('userid')
-      // removeCookie('code')
-      // removeCookie('stu_torgcode')
-      // removeCookie('stu_torgname')
-      // removeCookie('description')
+      // localStorage.removeItem('token')
       this.dialogVisible = false
     },
     async dialogVisibleConfirm() {
-      // const usercode = getCookie('navTabId')
-      // const username = getCookie('admin')
-      // const usertype = getCookie('usertype')
-      // const userid = getCookie('userid')
-      // const stu_torgcode = getCookie('stu_torgcode')
-      // const data = {
-      //   usercode,
-      //   username,
-      //   usertype,
-      //   userid,
-      //   rid: '',
-      //   stu_torgcode
-      // }
       const data = {
         token: localStorage.getItem('token'),
         rid: ''
       }
       const res = await ForcedOffline(data)
       if (res.code === '200') {
-        this.$message.success('寮哄埗涓嬬嚎鎴愬姛锛�')
+        this.$notify.success('寮哄埗涓嬬嚎鎴愬姛锛�')
         this.dialogVisible = false
         this.$router.push({ path: this.redirect || '/' })
         // await this.handleLogin()

--
Gitblit v1.9.3