fix: 修复工单页面刷新会返回到工作台问题

This commit is contained in:
“huailei000”
2022-06-28 18:02:22 +08:00
committed by huailei
parent fc8d9b4509
commit ccecaf7aae

View File

@@ -82,8 +82,9 @@ export function hasActionPerm(route, action) {
export function getPermedViews() {
const viewShowMapper = [
['console', store.getters.consoleOrgs.length > 0],
['tickets', store.getters.consoleOrgs.length > 0],
['tickets', true],
['audit', store.getters.auditOrgs.length > 0],
['settings', true],
['workbench', true]
]
return viewShowMapper.filter(i => i[1]).map(i => i[0])