12345678910111213141516171819202122232425262728293031323334 |
- import { createApp } from "vue";
- import App from "./App.vue";
- import router from "./router";
- import i18n from "@/lang/";
- import { moneyFormat, getDictOne, compareTime, dictValueLabel, formChange, formChangeTwo } from "@/utils/util";
- const app = createApp(App);
- app.use(router);
- app.use(i18n).mount("#app");
- import { uploadDdRightBtn } from "@/utils/ddAdapter";
- import { post, get } from "@/utils/axios";
- import store from './store'
- app.config.globalProperties.get = get;
- app.config.globalProperties.post = post;
- // 金额千分符
- app.config.globalProperties.moneyFormat = moneyFormat;
- // 获取字典
- app.config.globalProperties.getDictOne = getDictOne;
- // 字典回显
- app.config.globalProperties.dictValueLabel = dictValueLabel;
- // 比较时间大小
- app.config.globalProperties.compareTime = compareTime;
- app.config.globalProperties.uploadDdRightBtn = uploadDdRightBtn;
- // form组件 select change事件回填
- app.config.globalProperties.formChange = formChange;
- app.config.globalProperties.formChangeTwo = formChangeTwo;
- //pinia
- app.use(store);
- //中英文全局挂载
- app.config.globalProperties.t = i18n.global.t;
- export default app;
|