From d0a87b4e72661b5c75d2d629bb521c724be5a52a Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 27 Apr 2022 06:06:23 +0000 Subject: [PATCH] fix init import --- packages/client/src/init.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index fd2104a8d7..629f0a2d89 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -168,14 +168,14 @@ fetchInstanceMetaPromise.then(() => { initializeSw(); }); -const app = createApp(defineAsyncComponent(() => - window.location.search === '?zen' ? import('@/ui/zen.vue') : - !$i ? import('@/ui/visitor.vue') : - ui === 'deck' ? import('@/ui/deck.vue') : - ui === 'desktop' ? import('@/ui/desktop.vue') : - ui === 'classic' ? import('@/ui/classic.vue') : - import('@/ui/universal.vue') -)); +const app = createApp( + window.location.search === '?zen' ? defineAsyncComponent(() =>import('@/ui/zen.vue')) : + !$i ? defineAsyncComponent(() =>import('@/ui/visitor.vue')) : + ui === 'deck' ? defineAsyncComponent(() =>import('@/ui/deck.vue')) : + ui === 'desktop' ? defineAsyncComponent(() =>import('@/ui/desktop.vue')) : + ui === 'classic' ? defineAsyncComponent(() =>import('@/ui/classic.vue')) : + defineAsyncComponent(() =>import('@/ui/universal.vue')) +); if (_DEV_) { app.config.performance = true;