|
@@ -44,6 +44,7 @@ import NoticeIcon from '@/components/NoticeIcon'
|
|
|
import { mapActions, mapGetters } from 'vuex'
|
|
|
import defaultAvatar from '@/assets/avatar2.jpg'
|
|
|
import store from '../../store'
|
|
|
+import Vue from 'vue'
|
|
|
export default {
|
|
|
name: 'UserMenu',
|
|
|
components: {
|
|
@@ -120,6 +121,7 @@ export default {
|
|
|
// 重新登录
|
|
|
const params = { username: '', password: '' }
|
|
|
return this.Login(params).then(() => {
|
|
|
+ store.commit('SET_ROLES', Vue.ls.get('rolesAccess-qpls-md'))
|
|
|
this.$router.push({ path: '/home' })
|
|
|
setTimeout(() => {
|
|
|
window.location.reload() // 刷新页面
|