提交 950cb03e authored 作者: 王鹏飞's avatar 王鹏飞

接口地址修改为统一api地址

上级 67c8f66b
module.exports = { module.exports = {
domain: 'dev.ezijing.com', domain: 'dev.ezijing.com',
url: 'https://x-learning.ezijing.com/api', url: 'https://learn-api.ezijing.com/api',
webpack: { webpack: {
externals: { externals: {
CKEDITOR: 'window.CKEDITOR', CKEDITOR: 'window.CKEDITOR',
...@@ -33,6 +33,7 @@ module.exports = { ...@@ -33,6 +33,7 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
baseUrl: 'https://learn-api.ezijing.com',
loginUrl: 'https://login.ezijing.com/xlearn/login/index' loginUrl: 'https://login.ezijing.com/xlearn/login/index'
} }
} }
...@@ -14,6 +14,7 @@ module.exports = { ...@@ -14,6 +14,7 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
baseUrl: 'https://learn-api.ezijing.com',
loginUrl: 'https://login.ezijing.com/xlearn/login/index' loginUrl: 'https://login.ezijing.com/xlearn/login/index'
} }
} }
...@@ -14,6 +14,7 @@ module.exports = { ...@@ -14,6 +14,7 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
baseUrl: 'https://learn-api2.ezijing.com',
loginUrl: 'https://login2.ezijing.com/xlearn/login/index' loginUrl: 'https://login2.ezijing.com/xlearn/login/index'
} }
} }
...@@ -3,7 +3,7 @@ import qs from 'qs' ...@@ -3,7 +3,7 @@ import qs from 'qs'
import { Message } from 'element-ui' import { Message } from 'element-ui'
const httpRequest = axios.create({ const httpRequest = axios.create({
// baseURL: process.env.VUE_APP_BASE_API, baseURL: webConf.others.baseUrl,
timeout: 60000, timeout: 60000,
withCredentials: true, withCredentials: true,
headers: { headers: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论