1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-16 23:58:54 +09:00
This commit is contained in:
syuilo 2018-02-21 01:14:25 +09:00
parent e4120e930c
commit 49d257992f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ init(async (launch) => {
} }
app.$router.addRoutes([{ app.$router.addRoutes([{
path: '/', component: MkIndex path: '/', name: 'index', component: MkIndex
}, { }, {
path: '/i/drive', component: MkDrive path: '/i/drive', component: MkDrive
}, { }, {

View File

@ -2,7 +2,7 @@
<div class="nav"> <div class="nav">
<ul> <ul>
<template v-if="os.isSignedIn"> <template v-if="os.isSignedIn">
<li class="home" :class="{ active: page == 'home' }"> <li class="home" :class="{ active: $route.name == 'index' }">
<router-link to="/"> <router-link to="/">
%fa:home% %fa:home%
<p>%i18n:desktop.tags.mk-ui-header-nav.home%</p> <p>%i18n:desktop.tags.mk-ui-header-nav.home%</p>