用户登录问题修改

This commit is contained in:
jiang 2024-11-11 13:42:53 +08:00
parent 56d8178d32
commit ae4a120987
1 changed files with 5 additions and 2 deletions

View File

@ -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()
if (this.roles.includes("audit") || this.roles.includes("systemAdmin")) {
this.connectWebSocket();
}
},
methods: {
checkPasswordStatus() {