提交 9ccfdaee authored 作者: 王鹏飞's avatar 王鹏飞

update

上级 c5641dce
module.exports = { module.exports = {
domain: 'dev.ezijing.com', domain: 'dev.ezijing.com',
url: 'https://learn-api2.ezijing.com/api', url: 'https://live-broadcast2.ezijing.com/api',
webpack: { webpack: {
externals: { externals: {
CKEDITOR: 'window.CKEDITOR', CKEDITOR: 'window.CKEDITOR',
...@@ -33,7 +33,6 @@ module.exports = { ...@@ -33,7 +33,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
baseUrl: 'https://learn-api2.ezijing.com',
loginUrl: 'https://login2.ezijing.com/auth/login/index' loginUrl: 'https://login2.ezijing.com/auth/login/index'
} }
} }
...@@ -14,7 +14,6 @@ module.exports = { ...@@ -14,7 +14,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
baseUrl: 'https://learn-api.ezijing.com',
loginUrl: 'https://login.ezijing.com/auth/login/index' loginUrl: 'https://login.ezijing.com/auth/login/index'
} }
} }
...@@ -14,7 +14,6 @@ module.exports = { ...@@ -14,7 +14,6 @@ module.exports = {
}, },
ProvidePlugin: {}, ProvidePlugin: {},
others: { others: {
baseUrl: 'https://learn-api2.ezijing.com',
loginUrl: 'https://login2.ezijing.com/auth/login/index' loginUrl: 'https://login2.ezijing.com/auth/login/index'
} }
} }
...@@ -6,5 +6,5 @@ export function logout() { ...@@ -6,5 +6,5 @@ export function logout() {
} }
// 获取用户信息 // 获取用户信息
export function getUser() { export function getUser() {
return httpRequest.get('/api/lms/user/getinfo') return httpRequest.get('/api/passport/account/get-user-info')
} }
...@@ -3,13 +3,9 @@ import qs from 'qs' ...@@ -3,13 +3,9 @@ import qs from 'qs'
import { Message } from 'element-ui' import { Message } from 'element-ui'
import router from '@/router' import router from '@/router'
const httpRequest = axios.create({ const httpRequest = axios.create({
baseURL: webConf.others.baseUrl,
timeout: 60000, timeout: 60000,
withCredentials: true, withCredentials: true,
headers: { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
'Content-Type': 'application/x-www-form-urlencoded',
tenant: 'sofia'
}
}) })
// 请求拦截 // 请求拦截
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论