Commit a6b9b55f authored by xinzhedeai's avatar xinzhedeai

顶部栏图片更换

parent 0d6a108d
src/assets/logo/logo_ks.png

8.06 KB | W: | H:

src/assets/logo/logo_ks.png

206 KB | W: | H:

src/assets/logo/logo_ks.png
src/assets/logo/logo_ks.png
src/assets/logo/logo_ks.png
src/assets/logo/logo_ks.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
> >
<transition name="sidebarLogoFade" class="logo-header"> <transition name="sidebarLogoFade" class="logo-header">
<router-link class="sidebar-logo-link logo-header" to="/"> <router-link class="sidebar-logo-link logo-header" to="/">
<!-- <img :src="logo" class="sidebar-logo" /> --> <img :src="logo" class="sidebar-logo" />
<h1 <h1
class="sidebar-title" class="sidebar-title"
:style="{ :style="{
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
float: left; float: left;
& .sidebar-logo { & .sidebar-logo {
width: 250px; width: 50px;
height: 50px; height: 50px;
vertical-align: middle; vertical-align: middle;
margin-right: 12px; margin-right: 12px;
......
...@@ -78,17 +78,19 @@ service.interceptors.response.use(res => { ...@@ -78,17 +78,19 @@ service.interceptors.response.use(res => {
} }
if (code === 401) { if (code === 401) {
if (!isRelogin.show) { if (!isRelogin.show) {
isRelogin.show = true; isRelogin.show = true;
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
isRelogin.show = false;
store.dispatch('LogOut').then(() => {
// location.href = '/index';
})
}).catch(() => {
isRelogin.show = false; isRelogin.show = false;
store.dispatch('LogOut').then(() => { });
// location.href = '/index'; }
location.href = 'http://yj.hylgzl.com/login'; // 山西华远大屏
}) location.href = 'http://yj.hylgzl.com/login'; // 山西华远大屏
}).catch(() => {
isRelogin.show = false;
});
}
return Promise.reject('无效的会话,或者会话已过期,请重新登录。') return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
} else if (code === 500) { } else if (code === 500) {
Message({ message: msg, type: 'error' }) Message({ message: msg, type: 'error' })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment