Browse Source

修复异步组件中AntV控件不能打开的BUG。

YangZhiJie 1 year ago
parent
commit
b3ae3af4dd
2 changed files with 15 additions and 4 deletions
  1. 2 2
      package.json
  2. 13 2
      src/main.js

+ 2 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "prodog-pc-client",
   "description": "Leanwo Prodog Client",
-  "version": "1.2.46",
+  "version": "1.2.47",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "ins": "npm install --registry=http://wuzhixin.vip:4873 -force",
@@ -17,7 +17,7 @@
     "ant-design-vue": "^4.2.1",
     "axios": "^0.19.2",
     "click-outside-vue3": "^4.0.1",
-    "client-base-v4": "4.0.77",
+    "client-base-v4": "4.0.78",
     "client-dic-v3": "^3.0.36",
     "client-eam-v3": "^3.0.81",
     "client-role-v3": "^3.0.24",

+ 13 - 2
src/main.js

@@ -8,10 +8,21 @@ import { createApp, defineAsyncComponent } from 'vue';
 //import { createApp, defineAsyncComponent } from 'vue/dist/vue.runtime.esm-browser.prod.js';
 
 
-import Antd from 'ant-design-vue';
-// import 'ant-design-vue/dist/antd.css';
+
+
+// 修复异步组件中AntV控件不能打开的BUG。
+// import Antd from 'ant-design-vue';
+import * as Antd from 'ant-design-vue';
 import 'ant-design-vue/dist/reset.css';
 window.Antd = Antd;
+//console.log(Antd);
+
+// 修复异步组件中AntV控件不能打开的BUG。
+import * as AntdComponents from 'ant-design-vue';
+window.Antd = AntdComponents;
+
+
+
 
 import { createRouter, createWebHashHistory } from 'vue-router';
 import { createStore } from 'vuex';