Przeglądaj źródła

统计图表导航栏顺序问题

zhongxiaoyu 2 lat temu
rodzic
commit
0fc4530f04

+ 1 - 1
src/views/statisticsCharts/components/statisticsTabs.vue

@@ -222,7 +222,7 @@ export default {
   computed: {
     newTabList() {
       const auths = JSON.parse(sessionStorage.getItem('userAuthList'))
-      return this.tabList.filter(tab => auths.some(auth => tab.roles.includes(auth)))
+      return this.tabList.filter(tab => !tab.roles || tab.roles.every(role => auths.includes(role)))
     }
   },
   watch: {