前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
<template> <div id="nav"> <div class="menu"> <router-link to="/">{{ $t("menu.home") }}</router-link> | <router-link to="/about">{{ $t("menu.about") }}</router-link> </div> <router-view /> </div> </template> <style> body { margin: 0; padding: 0; background-color: #d579b2; } #app { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; background-color: #ededed; } #nav { padding: 30px; } #nav a { font-weight: bold; color: #2c3e50; } #nav a.router-link-exact-active { color: #42b983; } </style>