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

test

上级 dd0b28d3
...@@ -24,46 +24,16 @@ module.exports = { ...@@ -24,46 +24,16 @@ module.exports = {
port: 8000, port: 8000,
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/',
// proxyTable: {
proxyTable: { // '/': {
'/': { // target: 'http://test1-sc.yunqueyi.com/',
// target: 'http://localhost:8084', // changeOrigin: true
// 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
}
},
context: [ //代理路径 context: [ //代理路径
// '/shopping', '/test'
// '/ugc',
// '/v1',
// '/v2',
// '/v3',
// '/v4',
// '/bos',
// '/member',
// '/promotion',
// '/eus',
// '/payapi',
// '/img',
'/exams'
], ],
proxypath: 'http://test1-sc.yunqueyi.com', proxypath: 'http://localhost:9000',
// proxypath: 'http://test1-api.yunqueyi.com', cssSourceMap: true
// 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
} }
} }
\ No newline at end of file
import axios from 'axios' import axios from 'axios'
import store from '../store' import store from '../store'
import { getHostnameAndPort } from '../utils' // import { getHostnameAndPort } from '../utils'
// axios.defaults.withCredentials = true // axios.defaults.withCredentials = true
const service = axios.create({ const service = axios.create({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册