C2 样式局部更新

This commit is contained in:
ciaochaos 2020-05-20 22:16:28 +08:00
parent 63aab81fae
commit 999a61c7a0
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ const RendererResImage = ({qrcode, params, setParamInfo}) => {
const [gpl, setGPL] = useState([]);
useMemo(() => {
getGrayPointList(params, qrcode.getModuleCount(), "#S-black", "#S-white").then(res => setGPL(res));
}, [setGPL, params, qrcode])
}, [setGPL, params[0], params[1], params[2], qrcode])
return (
<svg className="Qr-item-svg" width="100%" height="100%" viewBox={getViewBox(qrcode)} fill="white"