diff --git a/wwwroot/qr_scan.ui b/wwwroot/qr_scan.ui index fb4b011..c440611 100644 --- a/wwwroot/qr_scan.ui +++ b/wwwroot/qr_scan.ui @@ -2,12 +2,20 @@ "widgettype": "QRCodeSCan", "options": {}, "binds": [ - "wid": "self", - "event": "recognized", - "actiontype": "urlwidget", - "target": "root.page_center", - "options": { - "url": "$text" + { + "wid": "self", + "event": "recognized", + "actiontype": "urlwidget", + "target": "root.page_center", + "options": { + "url": "$text" + } + }, { + "wid": "self", + "event": "recognized", + "actiontype": "script", + "target": "#PopupWindow", + "script": "this.dismiss()" } ] } diff --git a/wwwroot/usermenu.ui b/wwwroot/usermenu.ui index 9ade888..6df4fc6 100644 --- a/wwwroot/usermenu.ui +++ b/wwwroot/usermenu.ui @@ -14,7 +14,7 @@ "icon": "{{entire_url('/bricks/imgs/qr-scan.svg')}}", "name":"qr-scan", "label":"扫码", - "url":"{{entire_url('qr_scan.ui')}}" + "url":"{{entire_url('qr_scan.ui')}}", "popup_options":{ "height": "300px", "width": "300px"