Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3d7d3 commit 5a374dbCopy full SHA for 5a374db
‎client/packages/lowcoder/src/comps/comps/customComp/customComp.tsx
@@ -191,7 +191,7 @@ function InnerCustomComponent(props: IProps) {
191
window.addEventListener("message", handleMessage);
192
iframe.addEventListener("load", handleIFrameLoad);
193
194
- const src = iframe.getAttribute("src");
+ const src = iframe.getAttribute("src") || trans('customComponent.entryUrl');
195
if (src && reloadFlagRef) {
196
reloadFlagRef.current = false;
197
const url = new URL("?_t=" + Date.now(), src);
@@ -210,7 +210,6 @@ function InnerCustomComponent(props: IProps) {
210
<iframe
211
ref={iframeRef}
212
title="custom-comp"
213
- src={trans('customComponent.entryUrl')}
214
/>
215
</Wrapper>
216
);
0 commit comments