別タブでルートより下を開いたときにはデッキにしないように (#4291)

This commit is contained in:
MeiMei 2019-02-17 02:26:17 +09:00 committed by syuilo
parent a639eed4a8
commit f648566ccf

View file

@ -128,7 +128,7 @@ init(async (launch, os) => {
const router = new VueRouter({
mode: 'history',
routes: [
os.store.getters.isSignedIn && os.store.state.device.deckMode
os.store.getters.isSignedIn && os.store.state.device.deckMode && document.location.pathname === '/'
? { path: '/', name: 'index', component: MkDeck, children: [
{ path: '/@:user', name: 'user', component: () => import('./views/deck/deck.user-column.vue').then(m => m.default), children: [
{ path: '', name: 'user', component: () => import('./views/deck/deck.user-column.home.vue').then(m => m.default) },