2 changed files with 8 additions and 41 deletions
@ -1,37 +0,0 @@ |
|||
<template> |
|||
<el-card class="box-card"> |
|||
<template #header> |
|||
<div class="card-header"> |
|||
<span>测试</span> |
|||
</div> |
|||
</template> |
|||
<div class="text item" v-for="item in routeList" :key="item.name"> |
|||
<router-link :to="item.path"> |
|||
<el-button type="text">{{ item.name }}</el-button> |
|||
</router-link> |
|||
</div> |
|||
</el-card> |
|||
</template> |
|||
|
|||
<script setup> |
|||
import { ref } from 'vue'; |
|||
import { routes } from '@/routers/index.js'; |
|||
|
|||
const routeList = ref(routes); |
|||
</script> |
|||
|
|||
<style> |
|||
.card-header { |
|||
display: flex; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
} |
|||
|
|||
.text { |
|||
font-size: 14px; |
|||
} |
|||
|
|||
.item { |
|||
margin-bottom: 18px; |
|||
} |
|||
</style> |
Loading…
Reference in new issue