From 295c0f2ced7e98c7578e138e8cd62e642a31eb5f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 12 Jul 2023 13:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81Modal=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/modal.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/modal.js b/plugins/modal.js index 41f5a26..ae8cae8 100644 --- a/plugins/modal.js +++ b/plugins/modal.js @@ -25,18 +25,18 @@ export default { uni.hideToast() }, // 弹出提示 - alert(content) { + alert(content, title) { uni.showModal({ - title: '提示', + title: title || '系统提示', content: content, showCancel: false }) }, // 确认窗体 - confirm(content) { + confirm(content, title) { return new Promise((resolve, reject) => { uni.showModal({ - title: '系统提示', + title: title || '系统提示', content: content, cancelText: '取消', confirmText: '确定',