chenshuai2144 6 лет назад
Родитель
Сommit
c9ab42bec5
3 измененных файлов с 11 добавлено и 6 удалено
  1. 5 5
      config/config.ts
  2. 1 1
      package.json
  3. 5 0
      src/global.less

+ 5 - 5
config/config.ts

@@ -26,11 +26,11 @@ const plugins: IPlugin[] = [
         // default true, when it is true, will use `navigator.language` overwrite default
         baseNavigator: true,
       },
-      // dynamicImport: {
-      //   loadingComponent: './components/PageLoading/index',
-      //   webpackChunkName: true,
-      //   level: 3,
-      // },
+      dynamicImport: {
+        loadingComponent: './components/PageLoading/index',
+        webpackChunkName: true,
+        level: 3,
+      },
       pwa: pwa
         ? {
             workboxPluginMode: 'InjectManifest',

+ 1 - 1
package.json

@@ -57,7 +57,7 @@
     "not ie <= 10"
   ],
   "dependencies": {
-    "@ant-design/pro-layout": "^4.8.3",
+    "@ant-design/pro-layout": "^4.8.7",
     "@antv/data-set": "^0.10.2",
     "antd": "^3.23.6",
     "classnames": "^2.2.6",

+ 5 - 0
src/global.less

@@ -24,6 +24,11 @@ body {
   -moz-osx-font-smoothing: grayscale;
 }
 
+.ant-pro-basicLayout {
+  width: 100%;
+  height: 100%;
+}
+
 ul,
 ol {
   list-style: none;