为 SSR 的导航菜单添加链接
This commit is contained in:
@ -98,7 +98,7 @@ onMounted(async () => {
|
||||
<li v-for="item in routeStore.allRoutes"
|
||||
:key="item.path"
|
||||
:class="{ 'active-item' : item.path == $route.path }"
|
||||
>{{ item.name }}</li>
|
||||
><a :href="item.path">{{ item.name }}</a></li>
|
||||
</ul>
|
||||
</template></ClientOnly>
|
||||
</nav>
|
||||
|
Reference in New Issue
Block a user