From 1e97cc472f8b156c464ecfd1c91c1e62f53151f0 Mon Sep 17 00:00:00 2001 From: xuxy <1059738716@qq.com> Date: 星期日, 11 八月 2024 18:18:30 +0800 Subject: [PATCH] Merge branch 'main' of https://gitee.com/people_3/hmy_farmer --- plugins/message.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/message.js b/plugins/message.js index ba0680b..a6738c4 100644 --- a/plugins/message.js +++ b/plugins/message.js @@ -6,7 +6,7 @@ title, icon: 'none', mask: false, - duration: 1500, + duration: 2000, position: 'center' } if (options && options.image) { @@ -44,7 +44,7 @@ content, showCancel: false, confirmText: '确定', - confirmColor: '#04BA97' + confirmColor: '#20613D' } options = Object.assign({}, initOptions, options) return new Promise((resolve) => { @@ -66,7 +66,7 @@ cancelText: '取消', cancelColor: '#000000', confirmText: '确定', - confirmColor: '#04BA97' + confirmColor: '#20613D' } options = Object.assign({}, initOptions, options) return new Promise((resolve, reject) => { @@ -74,7 +74,7 @@ ...options, success: (res) => { if (res.confirm) { - resolve() + resolve(res) } if (res.cancel) { reject() -- Gitblit v1.9.3