persist floating state when touch QR (#37)

This commit is contained in:
AceDataCloud committed 2024-01-07 13:29:33 +00:00
1 parent e2aad90284
commit 4ce4a287b5
2 files changed
+10 -4

No files matched your search

+3 -4
View File
@@ -9,7 +9,7 @@
>
<iframe width="360" height="560" :src="iframeUrl" frameborder="0" />
</el-dialog>
<el-dialog :model-value="!!qrLink" width="400px" :show-close="false">
<el-dialog v-model="showQR" width="400px" :show-close="true">
<qr-code
v-if="qrLink"
:value="qrLink"
@@ -37,6 +37,7 @@ export default defineComponent({
},
data() {
return {
showQR: false,
qrLink: ''
};
},
@@ -80,9 +81,7 @@ export default defineComponent({
if (event.data.name === 'show_qr') {
const data = event.data.data;
this.qrLink = data.qrLink;
}
if (event.data.name === 'hide_qr') {
this.qrLink = '';
this.showQR = true;
}
});
}