Browse Source

配置修改

duwendi 1 year ago
parent
commit
da95145925
2 changed files with 5 additions and 5 deletions
  1. 4 4
      config/index.js
  2. 1 1
      src/router/index.js

+ 4 - 4
config/index.js

@@ -8,7 +8,7 @@ module.exports = {
8
   dev: {
8
   dev: {
9
     // Paths
9
     // Paths
10
     assetsSubDirectory: "static",
10
     assetsSubDirectory: "static",
11
-    assetsPublicPath: "/luohe_park",
11
+    assetsPublicPath: "/luohe_operation",
12
 
12
 
13
     // Various Dev Server settings
13
     // Various Dev Server settings
14
     host: '0.0.0.0', // can be overwritten by process.env.HOST
14
     host: '0.0.0.0', // can be overwritten by process.env.HOST
@@ -44,12 +44,12 @@ module.exports = {
44
 
44
 
45
   build: {
45
   build: {
46
     // Template for index.html
46
     // Template for index.html
47
-    index: path.resolve(__dirname, "../dist/index.html"),
47
+    index: path.resolve(__dirname, "../luohe_operation/index.html"),
48
 
48
 
49
     // Paths
49
     // Paths
50
-    assetsRoot: path.resolve(__dirname, "../dist"),
50
+    assetsRoot: path.resolve(__dirname, "../luohe_operation"),
51
     assetsSubDirectory: "static",
51
     assetsSubDirectory: "static",
52
-    assetsPublicPath: "/luohe_park/",
52
+    assetsPublicPath: "/luohe_operation/",
53
 
53
 
54
     /**
54
     /**
55
      * Source Maps
55
      * Source Maps

+ 1 - 1
src/router/index.js

@@ -10,7 +10,7 @@ Vue.use(Router);
10
 
10
 
11
 export default new Router({
11
 export default new Router({
12
   mode: 'history',
12
   mode: 'history',
13
-  base: '/luohe_park',
13
+  base: '/luohe_operation',
14
   routes: [
14
   routes: [
15
     { path: "/", redirect: "/demo1" },
15
     { path: "/", redirect: "/demo1" },
16
     {
16
     {