made FE work even without either api or static config
This commit is contained in:
parent
40a175389a
commit
9467462ef0
2 changed files with 10 additions and 3 deletions
|
@ -132,7 +132,9 @@ window.fetch('/api/statusnet/config.json')
|
|||
{ name: 'root',
|
||||
path: '/',
|
||||
redirect: to => {
|
||||
return (store.state.users.currentUser ? redirectRootLogin : redirectRootNoLogin) || '/main/all'
|
||||
return (store.state.users.currentUser
|
||||
? store.state.instance.redirectRootLogin
|
||||
: store.state.instance.redirectRootNoLogin) || '/main/all'
|
||||
}},
|
||||
{ path: '/main/all', component: PublicAndExternalTimeline },
|
||||
{ path: '/main/public', component: PublicTimeline },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue