zhang song hace 6 años
padre
commit
4e1178c216

+ 2 - 1
build/utils.js

@@ -47,7 +47,8 @@ exports.cssLoaders = function (options) {
     if (options.extract) {
       return ExtractTextPlugin.extract({
         use: loaders,
-        fallback: 'vue-style-loader'
+        fallback: 'vue-style-loader',
+        publicPath:"../../"
       })
     } else {
       return ['vue-style-loader'].concat(loaders)

+ 2 - 1
build/webpack.prod.conf.js

@@ -23,6 +23,7 @@ const webpackConfig = merge(baseWebpackConfig, {
   },
   devtool: config.build.productionSourceMap ? config.build.devtool : false,
   output: {
+    publicPath:'./',
     path: config.build.assetsRoot,
     filename: utils.assetsPath('js/[name].[chunkhash].js'),
     chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
@@ -46,7 +47,7 @@ const webpackConfig = merge(baseWebpackConfig, {
       filename: utils.assetsPath('css/[name].[contenthash].css'),
       // Setting the following option to `false` will not extract CSS from codesplit chunks.
       // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
-      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 
+      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
       // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
       allChunks: true,
     }),

+ 3 - 3
config/index.js

@@ -9,7 +9,7 @@ env: require('./dev.env'),
         dev: {
             // Paths
             assetsSubDirectory: 'static',
-            assetsPublicPath: '/',
+            assetsPublicPath: './',
             proxyTable: {
                 //   '/api': {
                 //     target: 'http://39.108.234.18:8888',
@@ -51,7 +51,7 @@ env: require('./dev.env'),
             // Paths
             assetsRoot: path.resolve(__dirname, '../dist'),
             assetsSubDirectory: 'static',
-            assetsPublicPath: '/',
+            assetsPublicPath: './',
 
             /**
              * Source Maps
@@ -74,4 +74,4 @@ env: require('./dev.env'),
             // Set to `true` or `false` to always turn it on or off
             bundleAnalyzerReport: process.env.npm_config_report
         }
-    }
+    }

+ 1 - 1
dist/index.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>经销商管理系统</title><link rel="shortcut icon" href=https://dealer.jetour.com.cn/favicon.ico><link href=/static/css/app.c58d81a1194e3de7200adc3d0e79bd11.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.994077f78b49ba26f742.js></script><script type=text/javascript src=/static/js/app.8fedbc9c84ef2dce1481.js></script></body><script src="http://pv.sohu.com/cityjson?ie=utf-8"></script><script type=text/javascript>sessionStorage.setItem('ip', returnCitySN["cip"]);</script><script>var _hmt = _hmt || [];
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>经销商管理系统</title><link rel="shortcut icon" href=https://dealer.jetour.com.cn/favicon.ico><link href=./static/css/app.7b65d6bc37f065bfacf5ba96d24279b8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.994077f78b49ba26f742.js></script><script type=text/javascript src=./static/js/app.d86246151415fb999fbd.js></script></body><script src="http://pv.sohu.com/cityjson?ie=utf-8"></script><script type=text/javascript>sessionStorage.setItem('ip', returnCitySN["cip"]);</script><script>var _hmt = _hmt || [];
     (function() {
       var hm = document.createElement("script");
       hm.src = "https://hm.baidu.com/hm.js?95c45f55b7586b2c20d8c8b813693103";

+ 0 - 2
dist/static/js/manifest.2ae2e69a05c33dfc65f8.js

@@ -1,2 +0,0 @@
-!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a<e.length;a++)i=e[a],o[i]&&l.push(o[i][0]),o[i]=0;for(f in u)Object.prototype.hasOwnProperty.call(u,f)&&(r[f]=u[f]);for(n&&n(e,u,c);l.length;)l.shift()();if(c)for(a=0;a<c.length;a++)p=t(t.s=c[a]);return p};var e={},o={2:0};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,n,e){t.o(r,n)||Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:e})},t.n=function(r){var n=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(n,"a",n),n},t.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},t.p="/",t.oe=function(r){throw console.error(r),r}}([]);
-//# sourceMappingURL=manifest.2ae2e69a05c33dfc65f8.js.map

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
dist/static/js/manifest.2ae2e69a05c33dfc65f8.js.map


+ 2 - 1
src/components/order.vue

@@ -330,10 +330,11 @@
                             if (res.data.success == true) {
                                 this.$message.success(res.data.data);
                                 this.checkDialog = false;
-
+                                this.getRows();
                             } else {
                                 this.$message.success(res.data.error);
                                 this.checkDialog = false;
+                                this.getRows();
                             }
                         }
                     },

+ 1 - 1
src/router/index.js

@@ -25,7 +25,7 @@ Vue.use(ElementUI)
 Vue.use(quillEditor)
 
 const router = new Router({
-    mode: 'history',
+    mode: 'hash',
     base: '/dealerback',
     routes: [{
         path: '/home',

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio