PT PC端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
673 B

<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">
<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>