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

+ 1 - 1
src/router/index.js

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