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:
parent
93eab03f49
commit
b78177bee8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue