mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 17:05:54 +08:00
修改菜单栏重复点击console会显示bug , 以及行政地区不回显问题
This commit is contained in:
@@ -97,6 +97,14 @@ const ShopEntry = (resolve) =>
|
||||
|
||||
Vue.use(Router);
|
||||
|
||||
/**
|
||||
* 解决重复点击菜单会控制台报错bug
|
||||
*/
|
||||
const routerPush = Router.prototype.push
|
||||
Router.prototype.push = function push(location) {
|
||||
return routerPush.call(this, location).catch(error=> error)
|
||||
}
|
||||
|
||||
export default new Router({
|
||||
mode: "history",
|
||||
routes: [
|
||||
|
||||
Reference in New Issue
Block a user