Commit 0b83e342 authored by lipengcheng 's avatar lipengcheng

fix: axios优化

parent 45961ec2
......@@ -4,7 +4,7 @@ import router from './router'
import store from './store'
import './registerServiceWorker'
import './assets/style/index.scss'
import requests from '@/plugins/axios.js'
import requests from '@/plugins/axios/index'
import VueBus from 'vue-bus'
import VModal from 'vue-js-modal'
import moment from '@/plugins/moment.js'
......
......@@ -2,8 +2,8 @@
// 如果设置了全局拦截器,想取消实例中发出的请求,必须先移除全局拦截器,实例中配置的config.cancelToken属性才会生效
import axios from 'axios'
import handleStatus from '@/plugins/axios.handleStatus.js'
import setOptions from '@/plugins/axios.setOptions.js'
import handleStatus from '@/plugins/axios/axios.handleStatus.js'
import setOptions from '@/plugins/axios/axios.setOptions.js'
// import store from '@/store/index'
// import router from '@/router/index.js'
// import { Message, Notification } from 'element-ui'
......
import Vue from 'vue'
import VueRouter from 'vue-router'
import store from '@/store/index.js'
import requests from '@/plugins/axios.js'
import requests from '@/plugins/axios/index'
Vue.use(VueRouter)
let routes = []
......
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