mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
refactor: 网页版路由使用history模式
This commit is contained in:
parent
060569ee92
commit
b052b462e3
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
const originalPush = VueRouter.prototype.push;
|
||||||
VueRouter.prototype.push = function push(location) {
|
VueRouter.prototype.push = function push(location) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue