diff options
| author | Hakaba Hitoyo <example@example.com> | 2018-04-29 18:07:40 +0900 |
|---|---|---|
| committer | Hakaba Hitoyo <example@example.com> | 2018-04-29 18:07:40 +0900 |
| commit | b1d1c7cfc4a58fa508d2b2e2f092c040c23d99d0 (patch) | |
| tree | ecdb17dbad39a47f87a439b503914d4a6aa36ee6 | |
| parent | 2a6721ea562226d17e6e893f4fa822a8c20c63cc (diff) | |
lint
| -rw-r--r-- | src/main.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.js b/src/main.js index 9c79f941..73d73780 100644 --- a/src/main.js +++ b/src/main.js @@ -98,10 +98,12 @@ window.fetch('/static/config.json') } const routes = [ - { name: 'root', path: '/', redirect: to => { - var redirectRootLogin = data['redirectRootLogin'] - var redirectRootNoLogin = data['redirectRootNoLogin'] - return (store.state.users.currentUser? redirectRootLogin: redirectRootNoLogin) || '/main/all' + { name: 'root', + path: '/', + redirect: to => { + var redirectRootLogin = data['redirectRootLogin'] + var redirectRootNoLogin = data['redirectRootNoLogin'] + return (store.state.users.currentUser ? redirectRootLogin : redirectRootNoLogin) || '/main/all' }}, { path: '/main/all', component: PublicAndExternalTimeline }, { path: '/main/public', component: PublicTimeline }, |
