caipin 5 years ago
parent
commit
69825de7dc
3 changed files with 25 additions and 10 deletions
  1. 23 8
      config/webpack.prod.config.js
  2. 1 1
      public/index.html
  3. 1 1
      public/sub_index.html

+ 23 - 8
config/webpack.prod.config.js

@@ -77,7 +77,7 @@ module.exports = merge(common, {
 
   mode: 'production',
   output: {
-    publicPath:'http://cld2.com:9090/',
+    publicPath: 'http://cld2.com:9090/',
     filename: 'nodejs/[name].[hash].bundle.js',
   },
   mode: 'development',
@@ -101,13 +101,28 @@ module.exports = merge(common, {
     historyApiFallback: {
       rewrites: [
         {
-          // from: /^\/company/, to: '/',
-          // from: /^\/product\/lockStatistics/, to: '/product',
-          from: /^\/product/, to: '/product',
-          from: /^\/product\/lockCount/, to: '/product',
-          //客户相关
-          from: /^\/contact/, to: '/contact',
-          from: /^\/contact\/company/, to: '/contact',
+          // from: /\/hr/, to: '/hr',
+          // from: /\/hr\/indof/, to: '/hr',
+          from: '/contact', to: '/contact',
+         
+          //from: /^\/contact\/company/, to: '/contact',
+          //from: /^\/product/, to: '/product',
+          
+          //from: /^\/product\/lockCount/, to: '/product',
+          //from: /product/, to: '/product',
+          //from: /product\/lockCount/, to: '/product',
+
+          // from: /^\/wo\/wo/, to: '/',
+
+          // from: /^\/contact/, to: '/contact',
+          // from: /^\/contact\/company/, to: '/contact',
+          // from: /^\/product/, to: '/product',
+          // from: /^\/product\/company/, to: '/product',
+
+          // from: /^\/product\/hr/, to: '/hr',
+        },
+        {
+          from: '/product', to: '/product',
         },
       ]
     }

+ 1 - 1
public/index.html

@@ -4,7 +4,7 @@
 <head>
   <meta charset="utf-8">
   <title>
-    联系人-纵横CLD v2.0
+    联系人-纵横CLD v2.0-index
   </title>
   <meta name="description" content="Page Titile">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">

+ 1 - 1
public/sub_index.html

@@ -4,7 +4,7 @@
 <head>
   <meta charset="utf-8">
   <title>
-    联系人-纵横CLD v2.0
+    联系人-纵横CLD v2.0-subindex
   </title>
   <meta name="description" content="Page Titile">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">