Skip to content

Commit

Permalink
update close window function
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Jan 15, 2024
1 parent fabb90f commit 2016f39
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pages/dashboard/subplatform/digital-community/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue-darken-1" variant="text" @click="mqttGenItemConfirm">复制到粘贴板并关闭</v-btn>
<v-btn color="blue-darken-1" variant="text" @click="mqttGenItemConfirm">关闭当前页</v-btn>
<v-spacer></v-spacer>
</v-card-actions>
</v-card>
Expand Down Expand Up @@ -163,8 +163,8 @@ const formTitle = computed(() => {
})
function mqttGenItemConfirm() {
navigator.clipboard.writeText(JSON.stringify(mqttConfig.value));
useNuxtApp().$toast.success("已复制到粘贴板");
// navigator.clipboard.writeText(JSON.stringify(mqttConfig.value));
// useNuxtApp().$toast.success("已复制到粘贴板");
dialogMqttConfigGen.value = false;
}
Expand Down Expand Up @@ -238,4 +238,5 @@ onMounted(async () => {
await nextTick();
initialize();
})
</script>

0 comments on commit 2016f39

Please sign in to comment.