Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a7f2f07e
提交
a7f2f07e
编写于
10月 25, 2018
作者:
gjyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test
上级
dd0b28d3
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
40 行删除
+10
-40
index.js
config/index.js
+9
-39
fetch.js
src/utils/fetch.js
+1
-1
未找到文件。
config/index.js
浏览文件 @
a7f2f07e
...
@@ -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
src/utils/fetch.js
浏览文件 @
a7f2f07e
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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录