gaoluyang
3 天以前 7eebd7981c1f5d2c569556d1e87f7818cef18cce
src/main.js
@@ -2,6 +2,9 @@
import plugins from './plugins'
import store from './store'
import uviewPlus from 'uview-plus'
import Vant from 'vant';
import 'vant/lib/index.css';
import { setupGlobalComponents } from './components'
import { createSSRApp } from 'vue'
@@ -9,6 +12,9 @@
import { useDict } from '@/utils/dict'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
import {
  calculateTaxExclusiveTotalPrice,
} from "@/utils/summarizeTable.js";
@@ -17,6 +23,10 @@
  app.use(store)
  app.use(uviewPlus)
  app.use(plugins)
  app.use(Vant)
  // 注册全局组件
  setupGlobalComponents(app)
  // #ifndef MP-WEIXIN
  // 微信小程序中不支持自定义指令
@@ -31,6 +41,7 @@
  app.config.globalProperties.addDateRange = addDateRange
  app.config.globalProperties.selectDictLabel = selectDictLabel
  app.config.globalProperties.selectDictLabels = selectDictLabels
  app.config.globalProperties.calculateTaxExclusiveTotalPrice = calculateTaxExclusiveTotalPrice;
  return {
    app