From 15079a363658567a62db46ccfe489f04af79a687 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期三, 28 九月 2022 18:41:45 +0800
Subject: [PATCH] 运营管理的基础设置和案件池首页

---
 src/views/login/index.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 81992e8..bfd8c3e 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -94,9 +94,16 @@
     };
   },
   created() {
-    const pic = JSON.parse(localStorage.getItem('pic'));
+    const pic = JSON.parse(sessionStorage.getItem('pic'));
     if(pic){
       this.imgUrl = pic.loginPageIconUrl
+    }else{
+      this.$axios({
+          method: 'get',
+          url: 'sccg/system/portal/logo/search',
+        }).then(res => {
+          this.imgUrl = res.data.loginPageIconUrl
+        })
     }
    },
   methods: {
@@ -109,7 +116,6 @@
     },
     ...mapActions(["login"]),
     handleLogin() {
-      console.log("in login");
       const { username, password } = this.loginForm;
       const that = this;
       this.$axios
@@ -121,9 +127,9 @@
           if (response.code === 200) {
             // 淇濆瓨token
             console.log(response);
-            localStorage.setItem('token',response.data.token);
+            sessionStorage.setItem('token',response.data.token);
             // 淇濆瓨token
-            localStorage.setItem('tokenHead',response.data.tokenHead)
+            sessionStorage.setItem('tokenHead',response.data.tokenHead)
             // 璺宠浆鍒伴椤�
             that.$router.push("/home");
           }else{
@@ -177,6 +183,7 @@
   .logo>img {
     width: 75px;
     height: 75px;
+    border-radius: 4px;
   }
 
   .text-r {

--
Gitblit v1.8.0