refactor: 当url变更时重新加载webview面板

pull/13/head
moonrailgun 3 years ago
parent 23f25c5af5
commit b331bd7f23

@ -10,8 +10,10 @@ const GroupWebPanelRender = () => {
return <div>, </div>;
}
const url = groupPanelInfo.meta?.url;
return (
<iframe className="w-full h-full bg-white" src={groupPanelInfo.meta?.url} />
<iframe key={String(url)} className="w-full h-full bg-white" src={url} />
);
};

Loading…
Cancel
Save