Commit 032d7638 authored by 徐乐's avatar 徐乐

perf: 修改壳子功能嵌套第三方链接参数不生效问题

parent dd7a58ad
Pipeline #89996 waiting for manual action with stages
......@@ -14,6 +14,8 @@ const TabWidget = props => {
fullscreen: !(props.params !== undefined && props.params.fullscreen === 'true'),
});
const { linkUrl, fullscreen, bgColor } = params;
const newLink = linkUrl.replaceAll('@', '#').replaceAll('*', '?').replaceAll('$', '|').replaceAll('!', '&');
const [ref, isFullscreen, handleFullScreen, handleExit] = useFullScreen(fullscreen);
const goToPath = (name, data, widgetId) => {
try {
......@@ -88,9 +90,9 @@ const TabWidget = props => {
)}
</div>
</div>
{linkUrl ? (
{newLink ? (
<Iframe
url={linkUrl}
url={newLink}
width="100%"
height="100%"
display="block"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment