Browse Source

logo修改

master
qqkj 5 years ago
parent
commit
88a8de201e
  1. BIN
      dist.rar
  2. 3
      src/store/modules/user.js
  3. 7
      src/views/layout/components/Sidebar/Logo.vue

BIN
dist.rar

3
src/store/modules/user.js

@ -129,7 +129,9 @@ const user = {
commit('SET_ROLES', roles) commit('SET_ROLES', roles)
commit('SET_QXS', data.qxs) commit('SET_QXS', data.qxs)
commit('SET_TOKEN', data.data.accessToken.tokenValue) commit('SET_TOKEN', data.data.accessToken.tokenValue)
commit('SET_IS_LOAD_OK', false)
setToken( data.data.accessToken.tokenValue) setToken( data.data.accessToken.tokenValue)
removeCacheUserInfo();
} }
resolve(res) resolve(res)
}).catch(error => { }).catch(error => {
@ -255,6 +257,7 @@ const user = {
commit('SET_MYSHOPS', []) commit('SET_MYSHOPS', [])
commit('SET_MYPOSTS', []) commit('SET_MYPOSTS', [])
commit('SET_USER_INFO', {}) commit('SET_USER_INFO', {})
commit('SET_IS_LOAD_OK', false)
removeToken() removeToken()
removeCacheUserInfo(); removeCacheUserInfo();
resolve() resolve()

7
src/views/layout/components/Sidebar/Logo.vue

@ -57,14 +57,15 @@ export default {
width: 50px; width: 50px;
height: 50px; height: 50px;
vertical-align: middle; vertical-align: middle;
margin-left:-2px;
margin-left:-4px;
} }
& .sidebar-title { & .sidebar-title {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
color: #fff; color: #fff;
line-height: 50px; line-height: 50px;
font-size: 14px;
font-weight: 400;
font-size: 16px;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
vertical-align: middle; vertical-align: middle;
} }
@ -74,7 +75,7 @@ export default {
.sidebar-logo { .sidebar-logo {
width: 40px; width: 40px;
height: 40px; height: 40px;
margin-left: -2px;
margin-left: -4px;
} }
} }
} }

Loading…
Cancel
Save