1
0
mirror of synced 2026-03-24 03:38:34 +08:00

fix(ui): img组件没有配置url是点击页面刷新

This commit is contained in:
roymondchen
2022-06-06 14:12:54 +08:00
committed by jia000
parent 70292b92c8
commit 5d159ad9d8
3 changed files with 3 additions and 3 deletions

View File

@@ -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 (