fix(vueform.config.ts): change the form-data-transform-format to application/json
This commit is contained in:
parent
c0879f1ec2
commit
84f403b393
@ -4,11 +4,15 @@ import en from '@vueform/vueform/locales/en'
|
|||||||
import zh_CN from '@vueform/vueform/locales/zh_CN'
|
import zh_CN from '@vueform/vueform/locales/zh_CN'
|
||||||
import vueform from '@vueform/vueform/dist/vueform'
|
import vueform from '@vueform/vueform/dist/vueform'
|
||||||
import { defineConfig } from '@vueform/vueform'
|
import { defineConfig } from '@vueform/vueform'
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
// You might place these anywhere else in your project
|
// You might place these anywhere else in your project
|
||||||
import '@vueform/vueform/dist/vueform.css';
|
import '@vueform/vueform/dist/vueform.css';
|
||||||
|
axios.defaults.headers.post = {
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
}
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
axios,
|
||||||
theme: vueform,
|
theme: vueform,
|
||||||
locales: { zh_CN,en },
|
locales: { zh_CN,en },
|
||||||
locale: 'zh_CN',
|
locale: 'zh_CN',
|
||||||
|
Loading…
Reference in New Issue
Block a user