commit | ad540269055201def87d779a093d06d2fa91f123 | [log] [tgz] |
---|---|---|
author | wuweijie <root496879118@me.com> | Sun Oct 04 14:20:58 2020 +0800 |
committer | wuweijie <root496879118@me.com> | Sun Oct 04 14:20:58 2020 +0800 |
tree | 974de221161b4fba1e3fb80890e71f56e4b4d1b0 | |
parent | f1dff5c30da71b99232fc789760fd9575963e3a2 [diff] |
Correct axios default value of Content-Type
diff --git a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js b/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js index d4906a5..1b0d4e3 100644 --- a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js +++ b/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/api.js
@@ -19,7 +19,7 @@ import { Message } from 'element-ui' import C from './conf' -axios.defaults.headers.post['Content-Type'] = 'application/jsoncharset=UTF-8' +axios.defaults.headers.post['Content-Type'] = 'application/json; charset=UTF-8' axios.defaults.withCredentials = true function ajax(url, type, options, config) {