Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
0b83e342
Commit
0b83e342
authored
Sep 08, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: axios优化
parent
45961ec2
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
4 additions
and
4 deletions
+4
-4
main.js
src/main.js
+1
-1
axios copy.js
src/plugins/axios/axios copy.js
+0
-0
axios.handleStatus.js
src/plugins/axios/axios.handleStatus.js
+0
-0
axios.setOptions.js
src/plugins/axios/axios.setOptions.js
+0
-0
axios1.js
src/plugins/axios/axios1.js
+0
-0
axios2.js
src/plugins/axios/axios2.js
+0
-0
axios3.js
src/plugins/axios/axios3.js
+0
-0
axios4.js
src/plugins/axios/axios4.js
+0
-0
axios5.js
src/plugins/axios/axios5.js
+0
-0
axios6.js
src/plugins/axios/axios6.js
+0
-0
axios7.js
src/plugins/axios/axios7.js
+0
-0
axios8.js
src/plugins/axios/axios8.js
+0
-0
index.js
src/plugins/axios/index.js
+2
-2
index.js
src/router/index.js
+1
-1
No files found.
src/main.js
View file @
0b83e342
...
...
@@ -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'
...
...
src/plugins/axios copy.js
→
src/plugins/axios
/axios
copy.js
View file @
0b83e342
File moved
src/plugins/axios.handleStatus.js
→
src/plugins/axios
/axios
.handleStatus.js
View file @
0b83e342
File moved
src/plugins/axios.setOptions.js
→
src/plugins/axios
/axios
.setOptions.js
View file @
0b83e342
File moved
src/plugins/axios1.js
→
src/plugins/axios
/axios
1.js
View file @
0b83e342
File moved
src/plugins/axios2.js
→
src/plugins/axios
/axios
2.js
View file @
0b83e342
File moved
src/plugins/axios3.js
→
src/plugins/axios
/axios
3.js
View file @
0b83e342
File moved
src/plugins/axios4.js
→
src/plugins/axios
/axios
4.js
View file @
0b83e342
File moved
src/plugins/axios5.js
→
src/plugins/axios
/axios
5.js
View file @
0b83e342
File moved
src/plugins/axios6.js
→
src/plugins/axios
/axios
6.js
View file @
0b83e342
File moved
src/plugins/axios7.js
→
src/plugins/axios
/axios
7.js
View file @
0b83e342
File moved
src/plugins/axios8.js
→
src/plugins/axios
/axios
8.js
View file @
0b83e342
File moved
src/plugins/axios.js
→
src/plugins/axios
/index
.js
View file @
0b83e342
...
...
@@ -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'
...
...
src/router/index.js
View file @
0b83e342
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
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment