Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey Tsui committed Jan 7, 2024
1 parent 2366fbe commit 6722554
Showing 1 changed file with 3 additions and 4 deletions.
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 6722554

Please sign in to comment.