From b9cc1c6aa7ed394cbaaf20a8f6971a76e11a28ba Mon Sep 17 00:00:00 2001 From: Joe <1712833832@qq.com> Date: Tue, 6 Feb 2024 09:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=9B=B8=E6=9C=BA=E5=BC=B9?= =?UTF-8?q?=E7=AA=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/Home/components/Dialogs/mixin.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js index 03e081ae..9d4b8886 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js @@ -25,11 +25,17 @@ export const dialogDelayVisible = { computed: { obverseVisible: { set(bool) { - this.visibleClose?.(bool); + try { + typeof this.visibleClose === "function" && this.visibleClose?.(bool); + } catch (error) {} + setTimeout(() => { this.$emit("change", bool); }, 180); - this.visibleData = bool; + + setTimeout(() => { + this.visibleData = bool; + }); }, get() { return this.visibleData;