提交 4a9c4d9a authored 作者: 王鹏飞's avatar 王鹏飞

dev-build

上级 953aa7d3
NODE_ENV=production
VUE_APP_LOGIN_API=https://e-learning3.ezijing.com
VUE_APP_BASE_API=https://lms-api2.ezijing.com
VUE_APP_BASE_API=https://ehall2.ezijing.com/api/lms
VUE_APP_LOGIN_API=https://databus-api2.ezijing.com
VUE_APP_BASE_API=https://lms-api.ezijing.com
VUE_APP_LOGIN_API=https://e-learning.ezijing.com
VUE_APP_BASE_API=https://ehall.ezijing.com/api/lms
......@@ -12,4 +12,4 @@
}
resizeRoot()
win.addEventListener('resize', resizeRoot, false)
})(window, document)</script><link href=/css/chunk-1e2bace7.6e8b52de.css rel=prefetch><link href=/css/chunk-1ee731a4.dd591e9b.css rel=prefetch><link href=/css/chunk-3aad9bd9.62fd5d68.css rel=prefetch><link href=/js/chunk-1e2bace7.390359e3.js rel=prefetch><link href=/js/chunk-1ee731a4.5f930351.js rel=prefetch><link href=/js/chunk-3a7097b0.6fd2a1be.js rel=prefetch><link href=/js/chunk-3aad9bd9.843cb3cb.js rel=prefetch><link href=/js/chunk-86287c5a.5dde23c3.js rel=prefetch><link href=/css/app.d64984bc.css rel=preload as=style><link href=/css/chunk-vendors.25cc10a1.css rel=preload as=style><link href=/js/app.90529b60.js rel=preload as=script><link href=/js/chunk-vendors.fd8b7db1.js rel=preload as=script><link href=/css/chunk-vendors.25cc10a1.css rel=stylesheet><link href=/css/app.d64984bc.css rel=stylesheet></head><body><noscript><strong>We're sorry but ezijing-office-h5 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.fd8b7db1.js></script><script src=/js/app.90529b60.js></script></body></html>
\ No newline at end of file
})(window, document)</script><link href=/css/chunk-1e2bace7.6e8b52de.css rel=prefetch><link href=/css/chunk-1ee731a4.dd591e9b.css rel=prefetch><link href=/css/chunk-3aad9bd9.62fd5d68.css rel=prefetch><link href=/js/chunk-1e2bace7.390359e3.js rel=prefetch><link href=/js/chunk-1ee731a4.5f930351.js rel=prefetch><link href=/js/chunk-3a7097b0.6fd2a1be.js rel=prefetch><link href=/js/chunk-3aad9bd9.843cb3cb.js rel=prefetch><link href=/js/chunk-86287c5a.5dde23c3.js rel=prefetch><link href=/css/app.d64984bc.css rel=preload as=style><link href=/css/chunk-vendors.25cc10a1.css rel=preload as=style><link href=/js/app.9fafc10e.js rel=preload as=script><link href=/js/chunk-vendors.fd8b7db1.js rel=preload as=script><link href=/css/chunk-vendors.25cc10a1.css rel=stylesheet><link href=/css/app.d64984bc.css rel=stylesheet></head><body><noscript><strong>We're sorry but ezijing-office-h5 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.fd8b7db1.js></script><script src=/js/app.9fafc10e.js></script></body></html>
\ No newline at end of file
差异被折叠。
差异被折叠。
......@@ -7,22 +7,16 @@ const httpRequest = axios.create({
baseURL: process.env.VUE_APP_BASE_API,
timeout: 60000,
withCredentials: true,
crossDomain: true,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
// tenant: 'sofia',
// token: localStorage.getItem('token') || ''
'Content-Type': 'application/x-www-form-urlencoded',
tenant: 'sofia',
token: localStorage.getItem('token') || ''
}
})
// 请求拦截
httpRequest.interceptors.request.use(
function(config) {
const token = localStorage.getItem('token') || ''
if (token) {
config.headers['token'] = token
config.headers.tenant = 'sofia'
}
if (
config.headers['Content-Type'] === 'application/x-www-form-urlencoded'
) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论