mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2026-04-05 02:16:54 +08:00
refactor: 网页版路由使用history模式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user