yusheng пре 1 година
родитељ
комит
b2311515cd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/home/index.vue

+ 1 - 1
src/views/home/index.vue

@@ -396,7 +396,7 @@
     computed: {
     computed: {
       ...mapGetters(['user']),
       ...mapGetters(['user']),
       getRoleName() {
       getRoleName() {
-        const currentUser = JSON.parse(sessionStorage['currentUser']);
+        let currentUser = getCurrentUser()
         return (list = [], type) => {
         return (list = [], type) => {
           const dept = list.find(
           const dept = list.find(
             (item) => item.groupId == currentUser.currentGroupId
             (item) => item.groupId == currentUser.currentGroupId