This commit is contained in:
parent
46038891ff
commit
c26dc1da83
@ -108,6 +108,11 @@ export default {
|
||||
name: "贵州装备制造职业学院",
|
||||
href:
|
||||
"/preview/pdf?src=贵州装备制造职业学院机电技术专业实训室建设.pdf"
|
||||
},
|
||||
{
|
||||
name: "江苏电子信息职业学院",
|
||||
href:
|
||||
"/preview/pdf?src=江苏电子信息职业学院-城市轨道交通行车组织综合实训室.pdf"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1,11 +1,16 @@
|
||||
<template>
|
||||
<div @mouseenter.stop="onMouseEnter" @mouseleave.stop="onMouseLeave">
|
||||
<div
|
||||
@mouseenter.stop="onMouseEnter"
|
||||
@mouseleave.stop="onMouseLeave"
|
||||
@click.stop="onMouseDown"
|
||||
>
|
||||
<template v-if="hasChildren">
|
||||
<b-navbar-nav>
|
||||
<b-nav-item-dropdown
|
||||
:text="node.meta.name"
|
||||
right
|
||||
style="font-size:16px;"
|
||||
@toggle="onMouseDown"
|
||||
>
|
||||
<template v-for="(el, j) in node.children">
|
||||
<e-menu-item :key="j" :node="el" />
|
||||
@ -46,6 +51,9 @@ export default {
|
||||
},
|
||||
onMouseLeave() {
|
||||
this.show = false;
|
||||
},
|
||||
onMouseDown() {
|
||||
document.scrollingElement.scrollTop = 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -80,6 +80,14 @@ const routes = [
|
||||
meta: {
|
||||
name: "贵州装备制造职业学院"
|
||||
}
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
redirect:
|
||||
"/preview/pdf?src=江苏电子信息职业学院-城市轨道交通行车组织综合实训室.pdf",
|
||||
meta: {
|
||||
name: "江苏电子信息职业学院"
|
||||
}
|
||||
}
|
||||
],
|
||||
component: () =>
|
||||
|
Reference in New Issue
Block a user