gaoluyang
10 天以前 5c48ef2b8267c38bae717202615e1618074ee31c
src/main.js
@@ -2,8 +2,10 @@
import plugins from './plugins'
import store from './store'
import uviewPlus from 'uview-plus'
import Vant from 'vant';
import 'vant/lib/index.css';
// 移除以下两行 Vant 相关导入
// import Vant from 'vant';
// import 'vant/lib/index.css';
import { setupGlobalComponents } from './components'
import { createSSRApp } from 'vue'
@@ -11,6 +13,9 @@
import { useDict } from '@/utils/dict'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
import {
  calculateTaxExclusiveTotalPrice,
} from "@/utils/summarizeTable.js";
@@ -19,7 +24,11 @@
  app.use(store)
  app.use(uviewPlus)
  app.use(plugins)
  app.use(Vant)
  // 移除以下行 Vant 注册
  // app.use(Vant)
  // 注册全局组件
  setupGlobalComponents(app)
  // #ifndef MP-WEIXIN
  // 微信小程序中不支持自定义指令
@@ -34,6 +43,7 @@
  app.config.globalProperties.addDateRange = addDateRange
  app.config.globalProperties.selectDictLabel = selectDictLabel
  app.config.globalProperties.selectDictLabels = selectDictLabels
  app.config.globalProperties.calculateTaxExclusiveTotalPrice = calculateTaxExclusiveTotalPrice;
  return {
    app