提交 65ac6597 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

大文件分片上传 断点续传 文件秒传先行版更新

上级 dcd182d5
......@@ -32,9 +32,9 @@ service.interceptors.request.use(
config => {
showLoading()
const token = store.getters['user/token']
config.data = config.headers['Content-Type'] == 'application/json' ? config.data : JSON.stringify(config.data);
config.data = JSON.stringify(config.data);
config.headers = {
'Content-Type': config.headers['Content-Type'] || 'application/json',
'Content-Type': 'application/json',
'x-token': token
}
return config;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册