提交 a7f2f07e 编写于 作者: gjyang's avatar gjyang

test

上级 dd0b28d3
......@@ -24,46 +24,16 @@ module.exports = {
port: 8000,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/': {
// target: 'http://localhost:8084',
// target: 'http://10.64.1.93:8084',
// target: 'http://10.64.1.179:8084',
// target: 'http://10.64.1.227:8084',
// target: 'http://172.31.100.141:8084',
// target: 'http://192.168.10.58:8084',
// target: 'http://192.168.80.44:9000',
target: 'http://test1-sc.yunqueyi.com/',
// target: 'http://test1-api.yunqueyi.com',
changeOrigin: true
}
},
// proxyTable: {
// '/': {
// target: 'http://test1-sc.yunqueyi.com/',
// changeOrigin: true
// }
// },
context: [ //代理路径
// '/shopping',
// '/ugc',
// '/v1',
// '/v2',
// '/v3',
// '/v4',
// '/bos',
// '/member',
// '/promotion',
// '/eus',
// '/payapi',
// '/img',
'/exams'
'/test'
],
proxypath: 'http://test1-sc.yunqueyi.com',
// proxypath: 'http://test1-api.yunqueyi.com',
// proxypath: 'http://cangdu.org:8001',
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
// In our experience, they generally work as expected,
// just be aware of this issue when enabling this option.
cssSourceMap: false
proxypath: 'http://localhost:9000',
cssSourceMap: true
}
}
\ No newline at end of file
import axios from 'axios'
import store from '../store'
import { getHostnameAndPort } from '../utils'
// import { getHostnameAndPort } from '../utils'
// axios.defaults.withCredentials = true
const service = axios.create({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册