张诺
2 天以前 7619d415522ab3dc3299d6a2a9f5c9964a692d3f
src/main.js
@@ -43,6 +43,9 @@
import ImagePreview from "@/components/ImagePreview"
// 字典标签组件
import DictTag from '@/components/DictTag'
import {summarizeTable} from "@/utils/summarizeTable.js";
import {getCurrentDate} from "@/utils/getCurrentDate.js";
import VueQrcode from '@chenfengyuan/vue-qrcode';
const app = createApp(App)
@@ -55,6 +58,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)
@@ -64,6 +69,7 @@
app.component('ImagePreview', ImagePreview)
app.component('RightToolbar', RightToolbar)
app.component('Editor', Editor)
app.component('vue-qrcode', VueQrcode)
app.use(router)
app.use(store)