yangjie #39
|
|
@ -240,6 +240,7 @@ const Index: React.FC = () => {
|
||||||
<Popover
|
<Popover
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
onOpenChange={(e: boolean) => {
|
onOpenChange={(e: boolean) => {
|
||||||
|
setBaseImage('')
|
||||||
if (e) {
|
if (e) {
|
||||||
GetQrcode(item.roomNum, import.meta.env.VITE_ENV === 'development' ? 'trial' : 'release').then(res => {
|
GetQrcode(item.roomNum, import.meta.env.VITE_ENV === 'development' ? 'trial' : 'release').then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
|
@ -249,12 +250,14 @@ const Index: React.FC = () => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
content={
|
content={
|
||||||
<div>
|
baseImage ? <div>
|
||||||
<img style={{ width: '200px', margin: '0 auto' }} src={`data:image/png;base64,${baseImage}`} alt="" />
|
<img style={{ width: '200px', margin: '0 auto' }} src={`data:image/png;base64,${baseImage}`} alt="" />
|
||||||
<div style={{ color: 'white', textAlign: 'center', fontSize: '16px', marginTop: '10px' }}>
|
<div style={{ color: 'white', textAlign: 'center', fontSize: '16px', marginTop: '10px' }}>
|
||||||
<span>微信中长按图片识别小程序码</span><br />
|
<span>微信中长按图片识别小程序码</span><br />
|
||||||
<span>加入会议</span>
|
<span>加入会议</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div> : <div>
|
||||||
|
<Empty description={'暂无二维码'} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue