|
|
|
@@ -38,8 +38,10 @@ const getRequestAPI = (type: IframePageType): (() => Promise<any>) => { |
|
|
|
code: 200, |
|
|
|
data: SessionStorage.getItem(SessionStorage.aimUrlKey) || '', |
|
|
|
}); |
|
|
|
case IframePageType.Knowledge: // git link |
|
|
|
return () => Promise.resolve({ code: 200, data: 'http://172.168.15.235:32701' }); |
|
|
|
case IframePageType.Knowledge: { // 知识图谱 |
|
|
|
const { origin } = location; |
|
|
|
return () => Promise.resolve({ code: 200, data: `http://${origin}:32701` }); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|