Commit 238f8625 authored by 杨奕's avatar 杨奕 Committed by FuryBean

MessageBox: swap 'message' and 'title' when called with 'this.$msgbox' (#1067)

parent 22bc5f31
...@@ -109,10 +109,10 @@ const showNextMsg = () => { ...@@ -109,10 +109,10 @@ const showNextMsg = () => {
const MessageBox = function(options, callback) { const MessageBox = function(options, callback) {
if (typeof options === 'string') { if (typeof options === 'string') {
options = { options = {
title: options message: options
}; };
if (arguments[1]) { if (arguments[1]) {
options.message = arguments[1]; options.title = arguments[1];
} }
if (arguments[2]) { if (arguments[2]) {
options.type = arguments[2]; options.type = arguments[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment