zbb 1 year ago
parent
commit
08e6253832
2 changed files with 3 additions and 2 deletions
  1. 2 2
      config/index.js
  2. 1 0
      src/router/index.js

+ 2 - 2
config/index.js

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

+ 1 - 0
src/router/index.js

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