| | |
| | | import axios from "axios"; |
| | | import util from "@/libs/util.js"; |
| | | import { Message } from "element-ui"; |
| | | import { Message,MessageBox } from "element-ui"; |
| | | |
| | | // import router from '@/router' |
| | | |
| | |
| | | type: 'error', |
| | | duration: 5 * 1000 |
| | | }) |
| | | // MessageBox.confirm( res.data.msg+"?", "提示", { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // type: "warning", |
| | | // }) |
| | | // .then(() => { |
| | | // }) |
| | | // .catch(() => {}); |
| | | } |
| | | return res.data ? res.data : {}; |
| | | } |
| | |
| | | type: 'error', |
| | | duration: 5 * 1000 |
| | | }) |
| | | // MessageBox.confirm( message+"?", "提示", { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // type: "warning", |
| | | // }) |
| | | // .then(() => {}) |
| | | // .catch(() => {}); |
| | | return Promise.reject(error) |
| | | } |
| | | ) |