陶杰
2025-01-13 efa9bfe98ba906e4c9b8f49c89f5da162a46bb0f
plugins/message.js
@@ -6,7 +6,7 @@
         title,
         icon: 'none',
         mask: false,
         duration: 1500,
         duration: 1200,
         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()