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 |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 58b68fe..7be91cc 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -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(() => {

--
Gitblit v1.9.3