diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-21 01:14:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-21 01:14:25 +0900 |
| commit | 49d257992fe5e2134498e65b5cf76942cf877aa9 (patch) | |
| tree | 50af6e8dda481c924d9f6f6b171bcaab41fe928a /src | |
| parent | wip (diff) | |
| download | sharkey-49d257992fe5e2134498e65b5cf76942cf877aa9.tar.gz sharkey-49d257992fe5e2134498e65b5cf76942cf877aa9.tar.bz2 sharkey-49d257992fe5e2134498e65b5cf76942cf877aa9.zip | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/script.ts | 2 | ||||
| -rw-r--r-- | src/web/app/desktop/views/components/ui.header.nav.vue | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/app/desktop/script.ts b/src/web/app/desktop/script.ts index cf725d27c6..2477f62f49 100644 --- a/src/web/app/desktop/script.ts +++ b/src/web/app/desktop/script.ts @@ -59,7 +59,7 @@ init(async (launch) => { } app.$router.addRoutes([{ - path: '/', component: MkIndex + path: '/', name: 'index', component: MkIndex }, { path: '/i/drive', component: MkDrive }, { diff --git a/src/web/app/desktop/views/components/ui.header.nav.vue b/src/web/app/desktop/views/components/ui.header.nav.vue index 5895255ff9..70c616d9c7 100644 --- a/src/web/app/desktop/views/components/ui.header.nav.vue +++ b/src/web/app/desktop/views/components/ui.header.nav.vue @@ -2,7 +2,7 @@ <div class="nav"> <ul> <template v-if="os.isSignedIn"> - <li class="home" :class="{ active: page == 'home' }"> + <li class="home" :class="{ active: $route.name == 'index' }"> <router-link to="/"> %fa:home% <p>%i18n:desktop.tags.mk-ui-header-nav.home%</p> |