用户登录问题修改
This commit is contained in:
parent
56d8178d32
commit
ae4a120987
|
|
@ -103,7 +103,8 @@ export default {
|
|||
sidebar: state => state.app.sidebar,
|
||||
device: state => state.app.device,
|
||||
needTagsView: state => state.settings.tagsView,
|
||||
fixedHeader: state => state.settings.fixedHeader
|
||||
fixedHeader: state => state.settings.fixedHeader,
|
||||
roles: state => state.user.roles,
|
||||
}),
|
||||
classObj() {
|
||||
return {
|
||||
|
|
@ -119,7 +120,9 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.checkPasswordStatus()
|
||||
this.connectWebSocket();
|
||||
if (this.roles.includes("audit") || this.roles.includes("systemAdmin")) {
|
||||
this.connectWebSocket();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkPasswordStatus() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue