This commit is contained in:
Hakaba Hitoyo 2018-04-29 18:07:40 +09:00
parent 2a6721ea56
commit b1d1c7cfc4

View file

@ -98,7 +98,9 @@ window.fetch('/static/config.json')
}
const routes = [
{ name: 'root', path: '/', redirect: to => {
{ name: 'root',
path: '/',
redirect: to => {
var redirectRootLogin = data['redirectRootLogin']
var redirectRootNoLogin = data['redirectRootNoLogin']
return (store.state.users.currentUser ? redirectRootLogin : redirectRootNoLogin) || '/main/all'