update 同步 ruoyi

* update 优化 下拉图标选择组件优化:1.已选择图标高亮回显 2.滚动条采用el-scrollbar
* fix 修复 开启TopNav后一级菜单路由参数设置无效问题
* update 优化 Vue的DictTag组件 当value没有匹配的值时 展示空value
* update 优化 恢复翻页/切换路由滚动功能
* fix 修复 路由跳转被阻止时vue-router内部产生报错信息问题
* fix 修复 缓存列表:多次清除操作,提示不变的问题
This commit is contained in:
疯狂的狮子li
2023-05-04 14:56:06 +08:00
parent 8c8b53e266
commit 47379dd702
10 changed files with 148 additions and 51 deletions

View File

@@ -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,