mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-12-27 02:25:59 +08:00
update 同步 ruoyi
* update 优化 下拉图标选择组件优化:1.已选择图标高亮回显 2.滚动条采用el-scrollbar * fix 修复 开启TopNav后一级菜单路由参数设置无效问题 * update 优化 Vue的DictTag组件 当value没有匹配的值时 展示空value * update 优化 恢复翻页/切换路由滚动功能 * fix 修复 路由跳转被阻止时vue-router内部产生报错信息问题 * fix 修复 缓存列表:多次清除操作,提示不变的问题
This commit is contained in:
@@ -166,9 +166,15 @@ export const dynamicRoutes = [
|
||||
|
||||
// 防止连续点击多次路由报错
|
||||
let routerPush = Router.prototype.push;
|
||||
let routerReplace = Router.prototype.replace;
|
||||
// push
|
||||
Router.prototype.push = function push(location) {
|
||||
return routerPush.call(this, location).catch(err => err)
|
||||
}
|
||||
// replace
|
||||
Router.prototype.replace = function push(location) {
|
||||
return routerReplace.call(this, location).catch(err => err)
|
||||
}
|
||||
|
||||
export default new Router({
|
||||
base: process.env.VUE_APP_CONTEXT_PATH,
|
||||
|
||||
Reference in New Issue
Block a user