|
|
@@ -28,17 +28,15 @@ export function messageSend (config, message) {
|
|
|
export function confirm (message) {
|
|
|
return MessageBox.confirm(
|
|
|
message,
|
|
|
- '提示',
|
|
|
- {
|
|
|
- type: 'warning',
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消'
|
|
|
- }
|
|
|
+ { type: 'warning' }
|
|
|
)
|
|
|
}
|
|
|
|
|
|
export function confirmAndSend (type, tip, config) {
|
|
|
- return confirm(tip ? `确定${type} ${tip}?` : `确定${type}?`).then(() => messageSend(config, type))
|
|
|
+ return MessageBox.confirm(
|
|
|
+ tip ? `确定${type} ${tip}?` : `确定${type}?`,
|
|
|
+ { type: 'warning' }
|
|
|
+ ).then(() => messageSend(config, type))
|
|
|
}
|
|
|
|
|
|
export function add (config) {
|