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
   dev: {
8
   dev: {
9
     // Paths
9
     // Paths
10
     assetsSubDirectory: "static",
10
     assetsSubDirectory: "static",
11
-    assetsPublicPath: "/",
11
+    assetsPublicPath: "/luohe2",
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
@@ -49,7 +49,7 @@ module.exports = {
49
     // Paths
49
     // Paths
50
     assetsRoot: path.resolve(__dirname, "../dist"),
50
     assetsRoot: path.resolve(__dirname, "../dist"),
51
     assetsSubDirectory: "static",
51
     assetsSubDirectory: "static",
52
-    assetsPublicPath: "./",
52
+    assetsPublicPath: "/luohe2",
53
 
53
 
54
     /**
54
     /**
55
      * Source Maps
55
      * Source Maps

+ 1 - 0
src/router/index.js

@@ -10,6 +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: '/luohe2',
13
   routes: [
14
   routes: [
14
     { path: "/", redirect: "/static_resource" },
15
     { path: "/", redirect: "/static_resource" },
15
     {
16
     {