23 lines
606 B
TypeScript
23 lines
606 B
TypeScript
// 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'
|
|
import PluginMask from '@vueform/plugin-mask'
|
|
import axios from 'axios'
|
|
|
|
// You might place these anywhere else in your project
|
|
import '@vueform/vueform/dist/vueform.css';
|
|
axios.defaults.headers.post = {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
export default defineConfig({
|
|
axios,
|
|
theme: vueform,
|
|
locales: { zh_CN,en },
|
|
locale: 'zh_CN',
|
|
plugins: [
|
|
PluginMask,
|
|
]
|
|
}) |