fix init import

This commit is contained in:
tamaina 2022-04-27 06:06:23 +00:00
parent 18aa1f2a4e
commit d0a87b4e72
1 changed files with 8 additions and 8 deletions

View File

@ -168,14 +168,14 @@ fetchInstanceMetaPromise.then(() => {
initializeSw(); initializeSw();
}); });
const app = createApp(defineAsyncComponent(() => const app = createApp(
window.location.search === '?zen' ? import('@/ui/zen.vue') : window.location.search === '?zen' ? defineAsyncComponent(() =>import('@/ui/zen.vue')) :
!$i ? import('@/ui/visitor.vue') : !$i ? defineAsyncComponent(() =>import('@/ui/visitor.vue')) :
ui === 'deck' ? import('@/ui/deck.vue') : ui === 'deck' ? defineAsyncComponent(() =>import('@/ui/deck.vue')) :
ui === 'desktop' ? import('@/ui/desktop.vue') : ui === 'desktop' ? defineAsyncComponent(() =>import('@/ui/desktop.vue')) :
ui === 'classic' ? import('@/ui/classic.vue') : ui === 'classic' ? defineAsyncComponent(() =>import('@/ui/classic.vue')) :
import('@/ui/universal.vue') defineAsyncComponent(() =>import('@/ui/universal.vue'))
)); );
if (_DEV_) { if (_DEV_) {
app.config.performance = true; app.config.performance = true;