Browse Source

改为history模式

duwendi 1 year ago
parent
commit
43d5dd23ee
2 changed files with 2 additions and 1 deletions
  1. 1 1
      config/index.js
  2. 1 0
      src/router/index.js

+ 1 - 1
config/index.js

@@ -49,7 +49,7 @@ module.exports = {
49 49
     // Paths
50 50
     assetsRoot: path.resolve(__dirname, "../dist"),
51 51
     assetsSubDirectory: "static",
52
-    assetsPublicPath: "",
52
+    assetsPublicPath: "./",
53 53
 
54 54
     /**
55 55
      * Source Maps

+ 1 - 0
src/router/index.js

@@ -9,6 +9,7 @@ Router.prototype.push = function push(location) {
9 9
 Vue.use(Router);
10 10
 
11 11
 export default new Router({
12
+  mode: 'history',
12 13
   routes: [
13 14
     { path: "/", redirect: "/static_resource" },
14 15
     {