@@ -16,7 +16,7 @@ import { initializeSw } from '@/scripts/initialize-sw';
 | 
			
		||||
 | 
			
		||||
export async function mainBoot() {
 | 
			
		||||
	const { isClientUpdated } = await common(() => createApp(
 | 
			
		||||
		new URLSearchParams(window.location.search).has('zen') || (ui === 'deck' && location.pathname !== '/') ? defineAsyncComponent(() => import('@/ui/zen.vue')) :
 | 
			
		||||
		new URLSearchParams(window.location.search).has('zen') ? defineAsyncComponent(() => import('@/ui/zen.vue')) :
 | 
			
		||||
		!$i ? defineAsyncComponent(() => import('@/ui/visitor.vue')) :
 | 
			
		||||
		ui === 'deck' ? defineAsyncComponent(() => import('@/ui/deck.vue')) :
 | 
			
		||||
		ui === 'classic' ? defineAsyncComponent(() => import('@/ui/classic.vue')) :
 | 
			
		||||
 
 | 
			
		||||
@@ -130,6 +130,14 @@ mainRouter.navHook = (path, flag): boolean => {
 | 
			
		||||
	return false;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
if (mainRouter.currentRoute.value.path !== '/') {
 | 
			
		||||
	const noMainColumn = !deckStore.state.columns.some(x => x.type === 'main');
 | 
			
		||||
	if (deckStore.state.navWindow || noMainColumn) {
 | 
			
		||||
		os.pageWindow(mainRouter.currentRoute.value.path);
 | 
			
		||||
		mainRouter.replace('/');
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const isMobile = ref(window.innerWidth <= 500);
 | 
			
		||||
window.addEventListener('resize', () => {
 | 
			
		||||
	isMobile.value = window.innerWidth <= 500;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user