From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期日, 27 四月 2025 17:39:24 +0800
Subject: [PATCH] 修复线索问题定位错误问题
---
miniprogram_npm/tdesign-miniprogram/toast/toast.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/toast/toast.js b/miniprogram_npm/tdesign-miniprogram/toast/toast.js
index dbfff03..be660e5 100644
--- a/miniprogram_npm/tdesign-miniprogram/toast/toast.js
+++ b/miniprogram_npm/tdesign-miniprogram/toast/toast.js
@@ -9,6 +9,7 @@
import props from './props';
import transition from '../mixins/transition';
import { calcIcon } from '../common/utils';
+import useCustomNavbar from '../mixins/using-custom-navbar';
const { prefix } = config;
const name = `${prefix}-toast`;
let Toast = class Toast extends SuperComponent {
@@ -18,7 +19,7 @@
this.options = {
multipleSlots: true,
};
- this.behaviors = [transition()];
+ this.behaviors = [transition(), useCustomNavbar];
this.hideTimer = null;
this.data = {
prefix,
@@ -67,6 +68,8 @@
},
hide() {
var _a, _b;
+ if (!this.data.visible)
+ return;
this.setData({ visible: false });
(_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
this.triggerEvent('close');
--
Gitblit v1.9.3