gaoluyang
3 天以前 a26e8d708ab3c8899bee5cae4167ccc3be9b58cd
src/main.js
@@ -2,14 +2,17 @@
import plugins from './plugins'
import store from './store'
import uviewPlus from 'uview-plus'
import { setupGlobalComponents } from './components'
import { createSSRApp } from 'vue'
import directive from './directive' // directive
import { useDict } from '@/utils/dict'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels, formatDateToYMD } from '@/utils/ruoyi'
import {
  calculateTaxExclusiveTotalPrice,
} from "@/utils/summarizeTable.js";
export function createApp() {
@@ -17,6 +20,8 @@
  app.use(store)
  app.use(uviewPlus)
  app.use(plugins)
  // 注册全局组件
  setupGlobalComponents(app)
  // #ifndef MP-WEIXIN
  // 微信小程序中不支持自定义指令
@@ -31,6 +36,8 @@
  app.config.globalProperties.addDateRange = addDateRange
  app.config.globalProperties.selectDictLabel = selectDictLabel
  app.config.globalProperties.selectDictLabels = selectDictLabels
  app.config.globalProperties.calculateTaxExclusiveTotalPrice = calculateTaxExclusiveTotalPrice;
  app.config.globalProperties.formatDateToYMD = formatDateToYMD;
  return {
    app