| | |
| | | import environments from '@/environments' |
| | | import message from './message' |
| | | import storage from './storage' |
| | | // import store from '../store' |
| | | import store from '../store' |
| | | import utils from './util.js' |
| | | // import Vue from 'vue' |
| | | // import { |
| | |
| | | dataType: options.dataType ? options.dataType : 'json', |
| | | data: options.data || null, |
| | | header, |
| | | timeout: 30000, |
| | | success: async (res) => { |
| | | if (!options.ignore) { |
| | | message.hideLoading() |
| | |
| | | if (!options.ignore) { |
| | | message.hideLoading() |
| | | } |
| | | message.showToast('网络异常') |
| | | reject({ |
| | | data: null, |
| | | code: 9999, |