Procházet zdrojové kódy

vxe4.5版本和i18n冲突问题

shizhong před 1 rokem
rodič
revize
91c3ac062c
2 změnil soubory, kde provedl 4 přidání a 6 odebrání
  1. 2 2
      package.json
  2. 2 4
      src/main.ts

+ 2 - 2
package.json

@@ -67,9 +67,9 @@
     "vue-router": "^4.3.0",
     "vue-types": "^5.1.1",
     "vuedraggable": "^4.1.0",
-    "vxe-table": "4.4.7",
+    "vxe-table": "^4.5.21",
     "web-storage-cache": "^1.1.1",
-    "xe-utils": "^3.5.7",
+    "xe-utils": "^3.5.22",
     "xml-js": "^1.6.11"
   },
   "devDependencies": {

+ 2 - 4
src/main.ts

@@ -16,9 +16,6 @@ import { setupGlobCom } from '@/components'
 // 引入 element-plus
 import { setupElementPlus } from '@/plugins/elementPlus'
 
-// 引入 vxe-table
-import { setupVxeTable } from '@/plugins/vxeTable'
-
 // 引入 form-create
 import { setupFormCreate } from '@/plugins/formCreate'
 
@@ -57,7 +54,8 @@ const setupAll = async () => {
 
   setupElementPlus(app)
 
-  setupVxeTable(app)
+  const vxeTable = await import('@/plugins/vxeTable')
+  vxeTable.setupVxeTable(app)
 
   setupFormCreate(app)