mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
fix: ⚗️ Attempt to fix routing
This commit is contained in:
parent
8a779c1d7e
commit
33108ca0ea
@ -3,9 +3,10 @@ import { Router } from '@/nirax';
|
|||||||
import { $i, iAmModerator } from '@/account';
|
import { $i, iAmModerator } from '@/account';
|
||||||
import MkLoading from '@/pages/_loading_.vue';
|
import MkLoading from '@/pages/_loading_.vue';
|
||||||
import MkError from '@/pages/_error_.vue';
|
import MkError from '@/pages/_error_.vue';
|
||||||
|
import { api } from '@/os';
|
||||||
import { ui } from '@/config';
|
import { ui } from '@/config';
|
||||||
|
|
||||||
// const guestTimeline = nodeinfo.meta.enableGuestTimeline;
|
const guestTimeline = await api('meta', { detail: false }).enableGuestTimeline;
|
||||||
|
|
||||||
const page = (loader: AsyncComponentLoader<any>) => defineAsyncComponent({
|
const page = (loader: AsyncComponentLoader<any>) => defineAsyncComponent({
|
||||||
loader: loader,
|
loader: loader,
|
||||||
@ -458,7 +459,7 @@ export const routes = [{
|
|||||||
}, {
|
}, {
|
||||||
path: '/timeline',
|
path: '/timeline',
|
||||||
component: page(() => import('./pages/timeline.vue')),
|
component: page(() => import('./pages/timeline.vue')),
|
||||||
// loginRequired: guestTimeline,
|
loginRequired: guestTimeline,
|
||||||
}, {
|
}, {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
path: '/',
|
path: '/',
|
||||||
|
Loading…
Reference in New Issue
Block a user