fix(client): Downgrade to Vite v3 (#9313)
* Revert "refactor(client): Create root.vue and select the ui in it (#9312)" This reverts commit0294555e2b. * use vite v3 * Revert "Revert "refactor(client): Create root.vue and select the ui in it (#9312)"" This reverts commit 56910e27fbad352f3cb8324a167aaf1446cea7c2. * Revert "refactor(client): Create root.vue and select the ui in it (#9312)" This reverts commit0294555e2b. * use vite@3.2.4 * update to v3.2.5
This commit is contained in:
parent
4b98920f02
commit
f4f293d5f3
4 changed files with 251 additions and 240 deletions
|
|
@ -38,7 +38,6 @@ import { reloadChannel } from '@/scripts/unison-reload';
|
|||
import { reactionPicker } from '@/scripts/reaction-picker';
|
||||
import { getUrlWithoutLoginId } from '@/scripts/login-id';
|
||||
import { getAccountFromId } from '@/scripts/get-account-from-id';
|
||||
import rootComponent from '@/root.vue';
|
||||
|
||||
(async () => {
|
||||
console.info(`Misskey v${version}`);
|
||||
|
|
@ -159,7 +158,13 @@ import rootComponent from '@/root.vue';
|
|||
initializeSw();
|
||||
});
|
||||
|
||||
const app = createApp(rootComponent);
|
||||
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 === 'classic' ? defineAsyncComponent(() => import('@/ui/classic.vue')) :
|
||||
defineAsyncComponent(() => import('@/ui/universal.vue')),
|
||||
);
|
||||
|
||||
if (_DEV_) {
|
||||
app.config.performance = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue