|
@@ -37,6 +37,8 @@ export default {
|
|
|
sidebar: state => state.app.sidebar,
|
|
|
device: state => state.app.device,
|
|
|
adminName: state => state.user.name,
|
|
|
+ systemName: state => state.user.systemName,
|
|
|
+ systemImage: state => state.user.systemImage,
|
|
|
showSettings: state => state.settings.showSettings,
|
|
|
needTagsView: state => state.settings.tagsView,
|
|
|
fixedHeader: state => state.settings.fixedHeader
|
|
@@ -50,9 +52,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.checkSysName()
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleClickOutside() {
|
|
|
this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
|
|
|
+ },
|
|
|
+ checkSysName() {
|
|
|
+ if (this.systemName) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.$store.dispatch('user/getSysInfo', this.organizeID).then(() => {
|
|
|
+ this.systemName = this.$store.getters.systemName
|
|
|
+ this.systemImage = this.$store.getters.systemImage
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|