2024-06-09 16:04:06 +00:00
|
|
|
// vueform.config.(js|ts)
|
|
|
|
|
|
|
|
import en from '@vueform/vueform/locales/en'
|
|
|
|
import zh_CN from '@vueform/vueform/locales/zh_CN'
|
|
|
|
import vueform from '@vueform/vueform/dist/vueform'
|
|
|
|
import { defineConfig } from '@vueform/vueform'
|
2024-06-09 18:35:22 +00:00
|
|
|
import PluginMask from '@vueform/plugin-mask'
|
2024-06-09 17:24:22 +00:00
|
|
|
import axios from 'axios'
|
2024-06-09 16:04:06 +00:00
|
|
|
|
|
|
|
// You might place these anywhere else in your project
|
|
|
|
import '@vueform/vueform/dist/vueform.css';
|
2024-06-09 17:24:22 +00:00
|
|
|
axios.defaults.headers.post = {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
}
|
2024-06-09 16:04:06 +00:00
|
|
|
export default defineConfig({
|
2024-06-09 17:24:22 +00:00
|
|
|
axios,
|
2024-06-09 16:04:06 +00:00
|
|
|
theme: vueform,
|
|
|
|
locales: { zh_CN,en },
|
|
|
|
locale: 'zh_CN',
|
2024-06-09 18:35:22 +00:00
|
|
|
plugins: [
|
|
|
|
PluginMask,
|
|
|
|
]
|
2024-06-09 16:04:06 +00:00
|
|
|
})
|