* Optimized jump link.

This commit is contained in:
tianshujie
2023-04-14 10:32:08 +08:00
parent 9180c13a89
commit f14efad6ac
+5 -2
View File
@@ -461,9 +461,12 @@ $(function()
}
else
{
type = type.toLowerCase();
methodName = spaceMethod[objectType] ? spaceMethod[objectType] : 'teamSpace';
if(['mine', 'view', 'collect', 'createdby'].indexOf(objectType) !== -1) linkParams = 'type=' + type + '&' + linkParams;
if(['mine', 'view', 'collect', 'createdby'].indexOf(objectType) !== -1)
{
type = ['view', 'collect', 'createdby'].indexOf(type.toLowerCase()) !== -1 ? type.toLowerCase() : 'mine';
linkParams = 'type=' + type + '&' + linkParams;
}
}
location.href = createLink(moduleName, methodName, linkParams);