fix(ui): img组件没有配置url是点击页面刷新
This commit is contained in:
@@ -35,7 +35,7 @@ const Img: React.FC<ImgProps> = ({ config }) => {
|
||||
if (!app) return null;
|
||||
|
||||
const clickHandler = () => {
|
||||
window.location.href = config.url;
|
||||
if (config.url) window.location.href = config.url;
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user