Commit b7b4ce1e by 姜雷

修改点击快速访问下菜单的跳转问题

parent 01481940
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<script> <script>
import MenuItem from './components/MenuItem'; import MenuItem from './components/MenuItem';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { formatRouteLink, getFilterMenu } from '@/utils/route'; import { formatRouteLink, getFilterMenu, getCollectMenu } from '@/utils/route';
export default { export default {
name: 'IconMenus', name: 'IconMenus',
...@@ -226,12 +226,13 @@ export default { ...@@ -226,12 +226,13 @@ export default {
}, },
methods: { methods: {
getCollectList(val) { getCollectList(val) {
let routers = formatRouteLink(this.routers);
let list = val.map(item => { let list = val.map(item => {
let id = item.menuId; let name = item.menuId.toString();
return getFilterMenu(this.routers, id); return getCollectMenu(routers, name);
}); });
list = list.filter(item => !!item); list = list.filter(item => !!item);
this.collectRouteList = list && list.length ? formatRouteLink(list) : []; this.collectRouteList = list && list.length ? list : [];
}, },
clickHandle() { clickHandle() {
if (this.dashboardVisiable) { if (this.dashboardVisiable) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment