Commit ffc3e385 by zhongqm

update:正式一定要开启云之家请求桥

parent 6e0be362
Showing with 6 additions and 6 deletions
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'
......
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 sign in to comment