gaoluyang
2 天以前 a00484ae729aed9a664050362fa2b8c6a4ce4fd6
src/main.js
@@ -43,6 +43,8 @@
import ImagePreview from "@/components/ImagePreview"
// 字典标签组件
import DictTag from '@/components/DictTag'
import {summarizeTable} from "@/utils/summarizeTable.js";
import {getCurrentDate} from "@/utils/getCurrentDate.js";
const app = createApp(App)
@@ -55,6 +57,8 @@
app.config.globalProperties.addDateRange = addDateRange
app.config.globalProperties.selectDictLabel = selectDictLabel
app.config.globalProperties.selectDictLabels = selectDictLabels
app.config.globalProperties.summarizeTable = summarizeTable
app.config.globalProperties.getCurrentDate = getCurrentDate
// 全局组件挂载
app.component('DictTag', DictTag)