二维码参数微调,JPG 大小改至 1500
This commit is contained in:
parent
51efaec82f
commit
bae10244ed
|
@ -93,7 +93,7 @@ class Qrcode extends React.Component {
|
||||||
downloadImg(e) {
|
downloadImg(e) {
|
||||||
const style = styleList[this.state.selectedIndex]
|
const style = styleList[this.state.selectedIndex]
|
||||||
const el = React.createElement(style.renderer, {qrcode: this.state.qrcode})
|
const el = React.createElement(style.renderer, {qrcode: this.state.qrcode})
|
||||||
saveImg(style.value, ReactDOMServer.renderToString(el), 512, 512)
|
saveImg(style.value, ReactDOMServer.renderToString(el), 1500, 1500)
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue