Commit cb54800165eee0ea795938302bb352b02a64d0c6

Authored by 刘淇
1 parent 2a4c08ca

去缓存

build/webpack.prod.conf.js
... ... @@ -12,7 +12,7 @@ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12 12 const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13 13  
14 14 const env = require('../config/prod.env')
15   -const Version = new Date().getTime()
  15 +const Version = new Date().getTime()
16 16 const webpackConfig = merge(baseWebpackConfig, {
17 17 module: {
18 18 rules: utils.styleLoaders({
... ... @@ -25,8 +25,8 @@ const webpackConfig = merge(baseWebpackConfig, {
25 25 output: {
26 26 publicPath: './',
27 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 31 plugins: [
32 32 // http://vuejs.github.io/vue-loader/en/workflow/production.html
... ... @@ -65,6 +65,7 @@ const webpackConfig = merge(baseWebpackConfig, {
65 65 filename: config.build.index,
66 66 template: 'index.html',
67 67 inject: true,
  68 + hash:Version,
68 69 minify: {
69 70 removeComments: true,
70 71 collapseWhitespace: true,
... ...
config/index.js
... ... @@ -13,14 +13,14 @@ module.exports = {
13 13 open: true,//vue项目启动时自动打开浏览器
14 14 proxyTable: {
15 15 '/api':{
16   - target:"http://221.228.70.87:8096",//这里设置你要访问的域名(或IP+端口)
  16 + target:"https://bus.jycrtc.com",//这里设置你要访问的域名(或IP+端口)
17 17 changeOrigin:true,
18 18 pathRewrite:{
19 19 '^/api':''//base_api是自定义用来代替
20 20 }
21 21 },
22 22 '/payapi':{
23   - target:"http://221.228.70.87:8096",//这里设置你要访问的域名(或IP+端口)
  23 + target:"https://pay.jycrtc.com",//这里设置你要访问的域名(或IP+端口)
24 24 changeOrigin:true,
25 25 pathRewrite:{
26 26 '^/payapi':''//base_api是自定义用来代替
... ...
config/prod.env.js
1 1 'use strict'
2 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 8 NODE_ENV: '"production"'
9 9 }
... ...
src/views/parkPay/coupon.vue
... ... @@ -9,7 +9,7 @@
9 9 :disabled="disabledFlag">
10 10 {{btnText}}
11 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 14 </div>
15 15  
... ...