From dc04c05b22a5323925218092a0687555a2a5c9c1 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期四, 29 九月 2022 18:39:31 +0800 Subject: [PATCH] 上报管理界面,案件池的违规、违建登记页面 --- src/views/login/index.vue | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a13548a..99a1c36 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: { @@ -118,6 +125,7 @@ }) .then(function (response) { if (response.code === 200) { + // 璁剧疆toke鏃堕棿 // 淇濆瓨token console.log(response); sessionStorage.setItem('token',response.data.token); @@ -128,7 +136,10 @@ }else{ that.$refs.loginForm.validate((valid)=>{ if(valid){ - that.$message.error(response.data.message); + that.$message({ + type:'warning', + message:response.message + }) } }) } @@ -176,6 +187,7 @@ .logo>img { width: 75px; height: 75px; + border-radius: 4px; } .text-r { -- Gitblit v1.8.0