Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
57b48579
提交
57b48579
编写于
4月 19, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
域名fixed
上级
4b2a6969
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
env-config.js
src/utils/env-config.js
+6
-6
index.js
src/utils/index.js
+2
-2
mixins.js
src/utils/mixins.js
+4
-4
未找到文件。
src/utils/env-config.js
浏览文件 @
57b48579
...
...
@@ -19,7 +19,7 @@ export const envConfig = {
followUpSCSoSo
:
'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/73'
,
followUpSC
:
'https://dev-sc.yunqueyi.com'
,
saasDomainUrl
:
'https://dev-saas.yunqueyi.com/'
,
saasApiUrl
:
'https://dev-saas
.yunqueyi.com/web'
,
workApiUrl
:
'https://dev-work
.yunqueyi.com/web'
,
},
dev
:
{
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
...
...
@@ -31,7 +31,7 @@ export const envConfig = {
yuequeyiIndexUrl
:
'https://dev-saas.yunqueyi.com/pica_index.html'
,
followUpSC
:
'https://dev-sc.yunqueyi.com'
,
saasDomainUrl
:
'https://dev-saas.yunqueyi.com/'
,
saasApiUrl
:
'https://dev-saas
.yunqueyi.com/web'
,
workApiUrl
:
'https://dev-work
.yunqueyi.com/web'
,
},
test
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
...
...
@@ -43,7 +43,7 @@ export const envConfig = {
followUpSC
:
'https://test1-sc.yunqueyi.com'
,
yuequeyiIndexUrl
:
'https://test1.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://test1.yunqueyi.com/'
,
saasApiUrl
:
'https://test1
.yunqueyi.com/web'
,
workApiUrl
:
'https://test1-work
.yunqueyi.com/web'
,
},
test2
:
{
baseUrl
:
'https://test1-sc.yunqueyi.com/'
,
...
...
@@ -55,7 +55,7 @@ export const envConfig = {
followUpSC
:
'https://test2-work.yunqueyi.com/sc'
,
yuequeyiIndexUrl
:
'https://test1.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://test1.yunqueyi.com/'
,
saasApiUrl
:
'https://test1
.yunqueyi.com/web'
,
workApiUrl
:
'https://test2-work
.yunqueyi.com/web'
,
},
uat
:
{
baseUrl
:
'https://uat-sc.yunqueyi.com/'
,
...
...
@@ -67,7 +67,7 @@ export const envConfig = {
followUpSC
:
'https://uat-sc.yunqueyi.com'
,
yuequeyiIndexUrl
:
'https://uat.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://uat.yunqueyi.com/'
,
saasApiUrl
:
'https://uat
.yunqueyi.com/web'
,
workApiUrl
:
'https://uat-work
.yunqueyi.com/web'
,
},
pro
:
{
baseUrl
:
'https://sc.yunqueyi.com/'
,
...
...
@@ -79,6 +79,6 @@ export const envConfig = {
followUpSC
:
'https://sc.yunqueyi.com'
,
yuequeyiIndexUrl
:
'https://www.yunqueyi.com/pica_index.html'
,
saasDomainUrl
:
'https://www.yunqueyi.com/'
,
saasApiUrl
:
'https://www
.yunqueyi.com/web'
,
workApiUrl
:
'https://work
.yunqueyi.com/web'
,
}
}
src/utils/index.js
浏览文件 @
57b48579
...
...
@@ -187,8 +187,8 @@ export function getSaasDomain(url) {
return
getConfigByEnvType
(
'saasDomainUrl'
)
+
url
}
// 获取saasApi端域名地址
export
function
get
Saas
Api
(
url
)
{
return
getConfigByEnvType
(
'
saas
ApiUrl'
)
+
url
export
function
get
Work
Api
(
url
)
{
return
getConfigByEnvType
(
'
work
ApiUrl'
)
+
url
}
// 根据不同环境,生成URL
...
...
src/utils/mixins.js
浏览文件 @
57b48579
import
fetch
from
'@/utils/fetch'
import
{
getBaseUrl
,
get
Saas
Api
}
from
'@/utils/index'
import
{
getBaseUrl
,
get
Work
Api
}
from
'@/utils/index'
module
.
exports
=
{
data
:
function
()
{
...
...
@@ -160,7 +160,7 @@ module.exports = {
headers
:
{
sysCode
:
9
,
},
url
:
get
Saas
Api
(
api
),
url
:
get
Work
Api
(
api
),
method
:
'get'
,
params
:
para
})
...
...
@@ -198,7 +198,7 @@ module.exports = {
sysCode
:
9
,
...
header
},
url
:
get
Saas
Api
(
api
),
url
:
get
Work
Api
(
api
),
method
:
'post'
,
data
:
para
})
...
...
@@ -209,7 +209,7 @@ module.exports = {
headers
:
{
sysCode
:
9
,
},
url
:
get
Saas
Api
(
api
),
url
:
get
Work
Api
(
api
),
method
:
'put'
,
data
:
para
})
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录