This commit is contained in:
yuping
2022-12-13 13:13:09 +08:00
parent 44375c4965
commit c3c1f48479
6 changed files with 26 additions and 29 deletions

View File

@@ -8,19 +8,19 @@
-->
<template>
<div id="container">
<div id="nav">
<router-link
v-for="item in routes"
:key="item.path"
:to="item.path"
:class="{
link: true,
active: name === item.name,
}"
>
{{ item.name }}
</router-link>
</div>
<!-- <div id="nav">-->
<!-- <router-link-->
<!-- v-for="item in routes"-->
<!-- :key="item.path"-->
<!-- :to="item.path"-->
<!-- :class="{-->
<!-- link: true,-->
<!-- active: name === item.name,-->
<!-- }"-->
<!-- >-->
<!-- {{ item.name }}-->
<!-- </router-link>-->
<!-- </div>-->
<main>
<router-view />
</main>