lanjianrong 5 år sedan
förälder
incheckning
f41d20f7ba
2 ändrade filer med 8 tillägg och 7 borttagningar
  1. 7 7
      config/config.js
  2. 1 0
      src/pages/Customer/Client/index.jsx

+ 7 - 7
config/config.js

@@ -38,12 +38,12 @@ export default defineConfig({
   targets: {
     ie: 11
   },
-  terserOptions: {
-    compress: {
-      drop_console: REACT_APP_ENV === 'prod' ? true : false,
-      drop_debugger: REACT_APP_ENV === 'prod' ? true : false
-    }
-  },
+  // terserOptions: {
+  //   compress: {
+  //     drop_console: NODE_ENV === 'production' ? true : false,
+  //     drop_debugger: NODE_ENV === 'production' ? true : false
+  //   }
+  // },
   // umi routes: https://umijs.org/docs/routing
   routes,
   // Theme for antd: https://ant.design/docs/react/customize-theme-cn
@@ -78,7 +78,7 @@ export default defineConfig({
     config.plugin('windicss').use(windicss)
     config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin)
 
-    if (REACT_APP_ENV === 'prod') {
+    if (NODE_ENV === 'production') {
       config.merge({
         optimization: {
           minimize: true,

+ 1 - 0
src/pages/Customer/Client/index.jsx

@@ -573,6 +573,7 @@ const Client = props => {
               onChange={onDistrictChange}
               changeOnSelect={true}
               bordered={false}
+              showFooter={true}
               className="hover:bg-[rgba(0,0,0,0.1)]"
             />,
             <AddContact onConfirm={handleAddClient} key="addContactBtn" />