Commit cb54800165eee0ea795938302bb352b02a64d0c6
1 parent
2a4c08ca
去缓存
Showing
4 changed files
with
11 additions
and
10 deletions
build/webpack.prod.conf.js
| @@ -12,7 +12,7 @@ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') | @@ -12,7 +12,7 @@ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') | ||
| 12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin') | 12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin') | 
| 13 | 13 | ||
| 14 | const env = require('../config/prod.env') | 14 | const env = require('../config/prod.env') | 
| 15 | -const Version = new Date().getTime() | 15 | +const Version = new Date().getTime() | 
| 16 | const webpackConfig = merge(baseWebpackConfig, { | 16 | const webpackConfig = merge(baseWebpackConfig, { | 
| 17 | module: { | 17 | module: { | 
| 18 | rules: utils.styleLoaders({ | 18 | rules: utils.styleLoaders({ | 
| @@ -25,8 +25,8 @@ const webpackConfig = merge(baseWebpackConfig, { | @@ -25,8 +25,8 @@ const webpackConfig = merge(baseWebpackConfig, { | ||
| 25 | output: { | 25 | output: { | 
| 26 | publicPath: './', | 26 | publicPath: './', | 
| 27 | path: config.build.assetsRoot, | 27 | path: config.build.assetsRoot, | 
| 28 | - filename: utils.assetsPath('js/[name].[chunkhash].'+Version+'js'), | ||
| 29 | - chunkFilename: utils.assetsPath('js/[id].[chunkhash].'+Version+'js') | 28 | + filename: utils.assetsPath(`js/[name].[chunkhash].${Version}.js`), | 
| 29 | + chunkFilename: utils.assetsPath(`js/[id].[chunkhash].${Version}.js`) | ||
| 30 | }, | 30 | }, | 
| 31 | plugins: [ | 31 | plugins: [ | 
| 32 | // http://vuejs.github.io/vue-loader/en/workflow/production.html | 32 | // http://vuejs.github.io/vue-loader/en/workflow/production.html | 
| @@ -65,6 +65,7 @@ const webpackConfig = merge(baseWebpackConfig, { | @@ -65,6 +65,7 @@ const webpackConfig = merge(baseWebpackConfig, { | ||
| 65 | filename: config.build.index, | 65 | filename: config.build.index, | 
| 66 | template: 'index.html', | 66 | template: 'index.html', | 
| 67 | inject: true, | 67 | inject: true, | 
| 68 | + hash:Version, | ||
| 68 | minify: { | 69 | minify: { | 
| 69 | removeComments: true, | 70 | removeComments: true, | 
| 70 | collapseWhitespace: true, | 71 | collapseWhitespace: true, | 
config/index.js
| @@ -13,14 +13,14 @@ module.exports = { | @@ -13,14 +13,14 @@ module.exports = { | ||
| 13 | open: true,//vue项目启动时自动打开浏览器 | 13 | open: true,//vue项目启动时自动打开浏览器 | 
| 14 | proxyTable: { | 14 | proxyTable: { | 
| 15 | '/api':{ | 15 | '/api':{ | 
| 16 | - target:"http://221.228.70.87:8096",//这里设置你要访问的域名(或IP+端口) | 16 | + target:"https://bus.jycrtc.com",//这里设置你要访问的域名(或IP+端口) | 
| 17 | changeOrigin:true, | 17 | changeOrigin:true, | 
| 18 | pathRewrite:{ | 18 | pathRewrite:{ | 
| 19 | '^/api':''//base_api是自定义用来代替 | 19 | '^/api':''//base_api是自定义用来代替 | 
| 20 | } | 20 | } | 
| 21 | }, | 21 | }, | 
| 22 | '/payapi':{ | 22 | '/payapi':{ | 
| 23 | - target:"http://221.228.70.87:8096",//这里设置你要访问的域名(或IP+端口) | 23 | + target:"https://pay.jycrtc.com",//这里设置你要访问的域名(或IP+端口) | 
| 24 | changeOrigin:true, | 24 | changeOrigin:true, | 
| 25 | pathRewrite:{ | 25 | pathRewrite:{ | 
| 26 | '^/payapi':''//base_api是自定义用来代替 | 26 | '^/payapi':''//base_api是自定义用来代替 | 
config/prod.env.js
| 1 | 'use strict' | 1 | 'use strict' | 
| 2 | module.exports = { | 2 | module.exports = { | 
| 3 | - APP_BASE_APP_API:'"http://221.228.70.87:8096"', //项目api地址1 注意里面的双引号 | ||
| 4 | - APP_BASE_WWW_API:'"http://221.228.70.87:8096"', //项目api地址2 | ||
| 5 | - VUE_APP_API:'"http://221.228.70.87:8096"', | ||
| 6 | - VUE_APP_PAYAPI:'"http://221.228.70.87:8096"', | 3 | + APP_BASE_APP_API:'"https://bus.jycrtc.com"', //项目api地址1 注意里面的双引号 | 
| 4 | + APP_BASE_WWW_API:'"https://pay.jycrtc.com"', //项目api地址2 | ||
| 5 | + VUE_APP_API:'"https://bus.jycrtc.com"', | ||
| 6 | + VUE_APP_PAYAPI:'"https://pay.jycrtc.com"', | ||
| 7 | 7 | ||
| 8 | NODE_ENV: '"production"' | 8 | NODE_ENV: '"production"' | 
| 9 | } | 9 | } | 
src/views/parkPay/coupon.vue
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | :disabled="disabledFlag"> | 9 | :disabled="disabledFlag"> | 
| 10 | {{btnText}} | 10 | {{btnText}} | 
| 11 | </mt-button> | 11 | </mt-button> | 
| 12 | - <mt-button size="large" type="danger" @click="toBackPage">返回</mt-button> | 12 | + <!--<mt-button size="large" type="danger" @click="toBackPage">返回</mt-button>--> | 
| 13 | 13 | ||
| 14 | </div> | 14 | </div> | 
| 15 | 15 | 
