diff --git a/config/index.js b/config/index.js index 43190407df945dd5e2426fb4a43a5b59ee23bef9..221e39405780f85501d6efade76ce8826a6ed35a 100644 --- a/config/index.js +++ b/config/index.js @@ -89,7 +89,7 @@ module.exports = { // Paths assetsRoot: path.resolve(__dirname, "../dist"), assetsSubDirectory: "myblog_static", - assetsPublicPath: "./", + assetsPublicPath: "/", /** * Source Maps */ diff --git a/src/router/index.js b/src/router/index.js index 743424212a7cd2a24cf192e8a9e9d24cf390819b..fb35cab005408e3e2723251a885c0ee1cc7e07ab 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -79,6 +79,7 @@ const useRouter = (Vue, VueRouter) => { } // 路由 const router = new VueRouter({ + mode: 'history', routes })