xuxueyang
2024-07-30 e4233b5c4e123c4b79a38d0a9b0c8b60631e1683
plugins/message.js
@@ -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()