From 1ec6e15f8a7d351ce8537567cf6e956e99d4167f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 09 八月 2023 10:16:05 +0800
Subject: [PATCH] 1.编码规格完成90%
---
src/views/login/index.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index d0e09f4..7be91cc 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>
@@ -144,6 +144,8 @@
import { validUsername } from '@/utils/validate'
import { getCookie, removeCookie, setCookie } from '@/utils/auth'
import { ForcedOffline } from '@/api/user'
+import { ButtonData } from '@/api/basicSettings'
+import Vue from 'vue'
export default {
name: 'Login',
@@ -217,11 +219,14 @@
if (valid) {
this.loading = true
this.$store.dispatch('user/login', this.loginForm).then(() => {
- console.log(getCookie('code') === '302', 9999)
+ // console.log(getCookie('code') === '302', 9999)
if (getCookie('code') === '302') {
this.dialogVisible = true
} else {
this.$router.push({ path: this.redirect || '/' })
+ ButtonData().then(res => {
+ sessionStorage.setItem('ButtonData', JSON.stringify(res.data))
+ })
}
this.loading = false
}).catch(() => {
@@ -245,7 +250,7 @@
}
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