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