You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.4 KiB
Vue
75 lines
1.4 KiB
Vue
2 years ago
|
<template>
|
||
|
<div class="sidebarBox">
|
||
|
<ul class="menuBoxUl">
|
||
|
<li class="menuItem" v-for="(item, index) in routeItem" :key="index">
|
||
|
<router-link :to="item.path"> {{ item.name }} </router-link>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
routeItem: [
|
||
|
{
|
||
|
path: "/home",
|
||
|
name: "首页",
|
||
|
},
|
||
|
{
|
||
|
path: "/report",
|
||
|
name: "状态报表",
|
||
|
},
|
||
|
{
|
||
|
path: "/log",
|
||
|
name: "上传日志列表",
|
||
|
},
|
||
|
{
|
||
|
path: "/upgradation",
|
||
|
name: "上传Apk",
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
},
|
||
|
watch: {},
|
||
|
methods: {},
|
||
|
created() {},
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style lang="less">
|
||
|
.sidebarBox {
|
||
|
// width: 55%;
|
||
|
// margin: 0 auto;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
.menuBoxUl {
|
||
|
flex: 1;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-around;
|
||
|
.menuItem {
|
||
|
list-style: none;
|
||
|
display: flex;
|
||
|
height: 40px;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
cursor: pointer;
|
||
|
font-size: 14px;
|
||
|
margin-right: 32px;
|
||
|
a {
|
||
|
color: #6de1ff;
|
||
|
background-image: url(../assets/menu.png);
|
||
|
height: 40px;
|
||
|
line-height: 40px;
|
||
|
padding: 0 12px;
|
||
|
background-size: 100% 100%;
|
||
|
background-repeat: no-repeat;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|