提交 5746ba4e authored 作者: 王鹏飞's avatar 王鹏飞

dev-build

上级 4a9c4d9a
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
} }
resizeRoot() resizeRoot()
win.addEventListener('resize', resizeRoot, false) 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.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> })(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.0c5beacd.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.0c5beacd.js></script></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -9,14 +9,17 @@ const httpRequest = axios.create({ ...@@ -9,14 +9,17 @@ const httpRequest = axios.create({
withCredentials: true, withCredentials: true,
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
tenant: 'sofia', tenant: 'sofia'
token: localStorage.getItem('token') || ''
} }
}) })
// 请求拦截 // 请求拦截
httpRequest.interceptors.request.use( httpRequest.interceptors.request.use(
function(config) { function(config) {
const token = localStorage.getItem('token') || ''
if (token) {
config.headers.token = token
}
if ( if (
config.headers['Content-Type'] === 'application/x-www-form-urlencoded' config.headers['Content-Type'] === 'application/x-www-form-urlencoded'
) { ) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论