From c93df04b18a68a7ce5faa75294467fc7ed0d3c5a Mon Sep 17 00:00:00 2001 From: youngS Date: Mon, 26 Apr 2021 10:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=85=E5=80=BC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/user/FirUserOrders.vue | 1 + fir_client/vue.config.js | 78 +++++++++---------- 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/fir_client/src/components/user/FirUserOrders.vue b/fir_client/src/components/user/FirUserOrders.vue index 8ce35b2..7fae6d4 100644 --- a/fir_client/src/components/user/FirUserOrders.vue +++ b/fir_client/src/components/user/FirUserOrders.vue @@ -419,6 +419,7 @@ let out_trade_no = this.$route.params.out_trade_no; if (out_trade_no) { this.goto_pay(this.current_order_info); + this.$route.params.out_trade_no=undefined; } } } else if (data.code === 1008) { diff --git a/fir_client/vue.config.js b/fir_client/vue.config.js index d530388..06d19ed 100644 --- a/fir_client/vue.config.js +++ b/fir_client/vue.config.js @@ -113,45 +113,45 @@ module.exports = { return options }) .end(); - - config.when(!IS_PROD, - config => { - config - .plugin('ScriptExtHtmlWebpackPlugin') - .after('html') - .use('script-ext-html-webpack-plugin', [{ - // `runtime` must same as runtimeChunk name. default is `runtime` - inline: /runtime\..*\.js$/ - }]) - .end(); - config - .optimization.splitChunks({ - chunks: 'all', - cacheGroups: { - libs: { - name: 'chunk-libs', - test: /[\\/]node_modules[\\/]/, - priority: 10, - chunks: 'initial' // only package third parties that are initially dependent - }, - elementUI: { - name: 'chunk-elementUI', // split elementUI into a single package - priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app - test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm - }, - commons: { - name: 'chunk-commons', - test: resolve('src/components'), // can customize your rules - minChunks: 3, // minimum common number - priority: 5, - reuseExistingChunk: true - } - } - }); - config.optimization.runtimeChunk('single'); - - } - ); + // + // config.when(!IS_PROD, + // config => { + // config + // .plugin('ScriptExtHtmlWebpackPlugin') + // .after('html') + // .use('script-ext-html-webpack-plugin', [{ + // // `runtime` must same as runtimeChunk name. default is `runtime` + // inline: /runtime\..*\.js$/ + // }]) + // .end(); + // config + // .optimization.splitChunks({ + // chunks: 'all', + // cacheGroups: { + // libs: { + // name: 'chunk-libs', + // test: /[\\/]node_modules[\\/]/, + // priority: 10, + // chunks: 'initial' // only package third parties that are initially dependent + // }, + // elementUI: { + // name: 'chunk-elementUI', // split elementUI into a single package + // priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app + // test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm + // }, + // commons: { + // name: 'chunk-commons', + // test: resolve('src/components'), // can customize your rules + // minChunks: 3, // minimum common number + // priority: 5, + // reuseExistingChunk: true + // } + // } + // }); + // config.optimization.runtimeChunk('single'); + // + // } + // ); }