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

update

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