refactor: 网页版路由使用history模式
This commit is contained in:
parent
060569ee92
commit
b052b462e3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue