Commit b7b4ce1e by 姜雷

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

parent 01481940
......@@ -139,7 +139,7 @@
<script>
import MenuItem from './components/MenuItem';
import { mapGetters } from 'vuex';
import { formatRouteLink, getFilterMenu } from '@/utils/route';
import { formatRouteLink, getFilterMenu, getCollectMenu } from '@/utils/route';
export default {
name: 'IconMenus',
......@@ -226,12 +226,13 @@ export default {
},
methods: {
getCollectList(val) {
let routers = formatRouteLink(this.routers);
let list = val.map(item => {
let id = item.menuId;
return getFilterMenu(this.routers, id);
let name = item.menuId.toString();
return getCollectMenu(routers, name);
});
list = list.filter(item => !!item);
this.collectRouteList = list && list.length ? formatRouteLink(list) : [];
this.collectRouteList = list && list.length ? list : [];
},
clickHandle() {
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