From 17ac2ce0ed52874616c79c910667e41e34604826 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期一, 31 八月 2026 13:14:12 +0800
Subject: [PATCH] add translation app
---
xiaozhi-esp32-server/main/manager-web/src/components/ViewPasswordDialog.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/xiaozhi-esp32-server/main/manager-web/src/components/ViewPasswordDialog.vue b/xiaozhi-esp32-server/main/manager-web/src/components/ViewPasswordDialog.vue
index a5c89af..e0e64a6 100644
--- a/xiaozhi-esp32-server/main/manager-web/src/components/ViewPasswordDialog.vue
+++ b/xiaozhi-esp32-server/main/manager-web/src/components/ViewPasswordDialog.vue
@@ -1,5 +1,5 @@
<template>
- <el-dialog :visible.sync="visible" width="400px" center>
+ <el-dialog :visible.sync="dialogVisible" width="400px" center>
<div
style="margin: 0 10px 10px;display: flex;align-items: center;gap: 10px;font-weight: 700;font-size: 20px;text-align: left;color: #3d4566;">
<div
@@ -38,9 +38,22 @@
visible: { type: Boolean, required: true },
password: { type: String, default: '' }
},
+ data() {
+ return {
+ dialogVisible: this.visible
+ }
+ },
+ watch: {
+ visible(val) {
+ this.dialogVisible = val
+ },
+ dialogVisible(val) {
+ this.$emit('update:visible', val)
+ }
+ },
methods: {
closeDialog() {
- this.$emit('update:visible', false)
+ this.dialogVisible = false
},
copyPassword() {
navigator.clipboard.writeText(this.password)
--
Gitblit v1.9.1