lilei 3 tahun lalu
induk
melakukan
c246fea816

+ 8 - 2
src/views/financialManagement/fundAccountManagement/detail.vue

@@ -151,8 +151,14 @@ export default {
   methods: {
     //  时间  change
     dateChange (date) {
-      this.queryParam.beginDate = date[0] + ' 00:00:00'
-      this.queryParam.endDate = date[1] + ' 00:00:00'
+      console.log(date)
+      if (date.length) {
+        this.queryParam.beginDate = date[0] + ' 00:00:00'
+        this.queryParam.endDate = date[1] + ' 00:00:00'
+      } else {
+        this.queryParam.beginDate = ''
+        this.queryParam.endDate = ''
+      }
     },
     //  重置
     resetSearchForm () {

+ 2 - 2
vue.config.js

@@ -60,7 +60,7 @@ const vueConfig = {
   runtimeCompiler: true, // 动态编译组件
   publicPath: BASE_URL,
   configureWebpack: {
-    optimization: {
+    optimization: isProd() ? {
           minimize: true,
           minimizer: [new TerserPlugin({
               test: /\.js(\?.*)?$/i,    //匹配参与压缩的文件
@@ -73,7 +73,7 @@ const vueConfig = {
               },
               extractComments: true,    //将注释剥离到单独的文件中
           })],
-      },
+      }:{},
     // webpack plugins
     plugins: [
       // Ignore all locale files of moment.js