forked from AkkomaGang/akkoma-fe
lint
This commit is contained in:
parent
2a6721ea56
commit
b1d1c7cfc4
1 changed files with 6 additions and 4 deletions
10
src/main.js
10
src/main.js
|
@ -98,10 +98,12 @@ window.fetch('/static/config.json')
|
||||||
}
|
}
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{ name: 'root', path: '/', redirect: to => {
|
{ name: 'root',
|
||||||
var redirectRootLogin = data['redirectRootLogin']
|
path: '/',
|
||||||
var redirectRootNoLogin = data['redirectRootNoLogin']
|
redirect: to => {
|
||||||
return (store.state.users.currentUser? redirectRootLogin: redirectRootNoLogin) || '/main/all'
|
var redirectRootLogin = data['redirectRootLogin']
|
||||||
|
var redirectRootNoLogin = data['redirectRootNoLogin']
|
||||||
|
return (store.state.users.currentUser ? redirectRootLogin : redirectRootNoLogin) || '/main/all'
|
||||||
}},
|
}},
|
||||||
{ path: '/main/all', component: PublicAndExternalTimeline },
|
{ path: '/main/all', component: PublicAndExternalTimeline },
|
||||||
{ path: '/main/public', component: PublicTimeline },
|
{ path: '/main/public', component: PublicTimeline },
|
||||||
|
|
Loading…
Reference in a new issue