Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-resume
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ffc3e385
authored
Jun 07, 2024
by
zhongqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update:正式一定要开启云之家请求桥
parent
6e0be362
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/js/polyfill/request.js
src/js/polyfill/request.js
View file @
ffc3e385
import
axios
from
'axios'
var
originAdapter
=
axios
.
defaults
.
adapter
//
axios.defaults.adapter = function (config) {
//
if (!/^https?/.test(config.url)) {
//
return originAdapter(config)
//
}
//
return request(config)
//
}
axios
.
defaults
.
adapter
=
function
(
config
)
{
if
(
!
/^https
?
/
.
test
(
config
.
url
))
{
return
originAdapter
(
config
)
}
return
request
(
config
)
}
function
isObject
(
value
)
{
return
value
!==
null
&&
typeof
value
===
'object'
...
...
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