Skip to content

Commit

Permalink
persist floating state when touch QR (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
AceDataCloud committed Jan 7, 2024
1 parent e2aad90 commit 4ce4a28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "persist floating state when touch",
"packageName": "@zhishuyun/hub",
"email": "cqc@germey.cn",
"dependentChangeType": "patch"
}
7 changes: 3 additions & 4 deletions src/components/common/AuthPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -37,6 +37,7 @@ export default defineComponent({
},
data() {
return {
showQR: false,
qrLink: ''
};
},
Expand Down Expand Up @@ -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;
}
});
}
Expand Down

0 comments on commit 4ce4a28

Please sign in to comment.