fix(UI 自动化): 切换项目ui模块路由错误

--bug=1013297 --user=张大海 【UI测试】github#13750 在UI模块下进行项目切换时,页面刷新未显示在UI模块页面,建议优化 https://www.tapd.cn/55049933/s/1168223

Closes #13750
This commit is contained in:
zhangdahai112 2022-05-30 14:46:54 +08:00 committed by zhangdahai112
parent 93eab03f49
commit b78177bee8
1 changed files with 2 additions and 0 deletions

View File

@ -104,12 +104,14 @@ export default {
let apiPermission = hasPermissions('PROJECT_API_DEFINITION:READ', 'PROJECT_API_SCENARIO:READ', 'PROJECT_API_REPORT:READ');
let performancePermission = hasPermissions('PROJECT_PERFORMANCE_TEST:READ', 'PROJECT_PERFORMANCE_REPORT:READ');
let projectPermission = hasPermissions('PROJECT_USER:READ', 'PROJECT_ENVIRONMENT:READ', 'PROJECT_OPERATING_LOG:READ', 'PROJECT_FILE:READ+JAR', 'PROJECT_FILE:READ+FILE', 'PROJECT_CUSTOM_CODE:READ');
let uiPermission = hasPermissions('PROJECT_UI_ELEMENT:READ', 'PROJECT_UI_SCENARIO:READ', 'PROJECT_UI_REPORT:READ');
let redirectMap = {
track: trackPermission,
api: apiPermission,
performance: performancePermission,
project: projectPermission,
ui: uiPermission,
};
let locations = redirectUrl.split('/');
if (locations.length > 2) {