{"size": 513, "ext": "js", "max_stars_repo_path": "src/utils/tool/messageBox.js", "max_stars_repo_name": "774848686/permission-admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/tool/messageBox.js", "max_issues_repo_name": "774848686/permission-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/tool/messageBox.js", "max_forks_repo_name": "774848686/permission-admin", "max_forks_repo_forks_event_min_datetime": "2019-12-18T11:43:26.000Z", "max_forks_repo_forks_event_max_datetime": "2019-12-18T11:43:26.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 24.4285714286, "max_line_length": 48, "alphanum_fraction": 0.4483430799}
import { Message,MessageBox } from 'element-ui';
/**
 * 对二次确认方法进行封装
 * @param {*} words 提示文字
 */
export const messageBoxConform = (words) => {
    return new Promise(resolve => {
        MessageBox.confirm(words, "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning"
        }).then(() => {
            resolve();
        }).catch(() => {
            Message({
                type: "info",
                message: "已取消"
            });
        });
    })
}