fix_操作日志_批量跳转--bug=1006766 --user=王孝刚 【系统设置-操作日志】添加工作空间成员标题高亮可点击,但点击后无响应 https://www.tapd.cn/55049933/s/1050327

This commit is contained in:
wxg0103 2021-09-23 14:02:34 +08:00 committed by 刘瑞斌
parent 2918fc8a61
commit 87dc4c5087
1 changed files with 6 additions and 2 deletions

View File

@ -107,11 +107,15 @@ export const sysList = [
export function getUrl(d) { export function getUrl(d) {
let url = "/#"; let url = "/#";
let resourceId = d.sourceId; let resourceId = d.sourceId;
if (resourceId && resourceId.startsWith("\"" || resourceId.startsWith("["))) { if (resourceId && (resourceId.startsWith("\"") || resourceId.startsWith("["))) {
resourceId = JSON.parse(d.sourceId); resourceId = JSON.parse(d.sourceId);
} }
if (resourceId instanceof Array) { if (resourceId instanceof Array) {
if (resourceId.length === 1) {
resourceId = resourceId[0]; resourceId = resourceId[0];
} else {
return url;
}
} }
switch (d.operModule) { switch (d.operModule) {
case "接口自动化" || "Api automation" || "接口自動化": case "接口自动化" || "Api automation" || "接口自動化":