* [bug #56994, done, 0.5h] fix js error on redirect from api-index to doc-productSpace.

This commit is contained in:
sunhao
2024-11-14 14:53:22 +08:00
committed by 刘刚
parent da046c899b
commit ac2c482f3c
+2 -2
View File
@@ -218,7 +218,7 @@ function handleClickSpaceMenu(event, value)
function getSpaceMenuText(text, state)
{
const spaceID = getDocApp().spaceID;
const spaceID = this.spaceID;
if(spaceID === 'nolink') return text;
const libTypeList = getDocAppLang('libTypeList');
return `${libTypeList[spaceID.split('.')[0]]} / ${text}`;
@@ -231,7 +231,7 @@ function getSpaceMenuOptions(spaceType, spaceID)
popWidth : 350,
onClickItem : handleClickSpaceMenu,
defaultValue: spaceID === 'nolink' ? `lib.${libID}`: spaceID,
display : getSpaceMenuText
display : getSpaceMenuText.bind(this)
};
}