yusheng 1 rok temu
rodzic
commit
b2311515cd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/views/home/index.vue

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

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