lVAL 2021-01-22 11:26:15 +08:00
parent 46038891ff
commit c26dc1da83
3 changed files with 22 additions and 1 deletions

View File

@ -108,6 +108,11 @@ export default {
name: "贵州装备制造职业学院", name: "贵州装备制造职业学院",
href: href:
"/preview/pdf?src=贵州装备制造职业学院机电技术专业实训室建设.pdf" "/preview/pdf?src=贵州装备制造职业学院机电技术专业实训室建设.pdf"
},
{
name: "江苏电子信息职业学院",
href:
"/preview/pdf?src=江苏电子信息职业学院-城市轨道交通行车组织综合实训室.pdf"
} }
] ]
}, },

View File

@ -1,11 +1,16 @@
<template> <template>
<div @mouseenter.stop="onMouseEnter" @mouseleave.stop="onMouseLeave"> <div
@mouseenter.stop="onMouseEnter"
@mouseleave.stop="onMouseLeave"
@click.stop="onMouseDown"
>
<template v-if="hasChildren"> <template v-if="hasChildren">
<b-navbar-nav> <b-navbar-nav>
<b-nav-item-dropdown <b-nav-item-dropdown
:text="node.meta.name" :text="node.meta.name"
right right
style="font-size:16px;" style="font-size:16px;"
@toggle="onMouseDown"
> >
<template v-for="(el, j) in node.children"> <template v-for="(el, j) in node.children">
<e-menu-item :key="j" :node="el" /> <e-menu-item :key="j" :node="el" />
@ -46,6 +51,9 @@ export default {
}, },
onMouseLeave() { onMouseLeave() {
this.show = false; this.show = false;
},
onMouseDown() {
document.scrollingElement.scrollTop = 0;
} }
} }
}; };

View File

@ -80,6 +80,14 @@ const routes = [
meta: { meta: {
name: "贵州装备制造职业学院" name: "贵州装备制造职业学院"
} }
},
{
path: "/",
redirect:
"/preview/pdf?src=江苏电子信息职业学院-城市轨道交通行车组织综合实训室.pdf",
meta: {
name: "江苏电子信息职业学院"
}
} }
], ],
component: () => component: () =>