diff --git a/src/router/index.js b/src/router/index.js index d751fca..d38fa2d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -134,7 +134,10 @@ const routes = [ }, ]; -const router = new VueRouter({ routes }); +const router = new VueRouter({ + mode: process.env.IS_ELECTRON ? 'hash' : 'history', + routes, +}); const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) {