yangjie #39

Merged
yangqiang merged 3 commits from yangjie into master 2024-12-03 13:56:25 +08:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit a390572d99 - Show all commits

View File

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