mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-23 09:07:40 -05:00
fix(miieditor): canvas not loaded at first render
This commit is contained in:
@@ -4,6 +4,7 @@ import BirthdaySetter from '@/components/BirthdaySetter/BirthdaySetter.vue';
|
||||
import { miiEditorJSON } from '@/utils/miieditor';
|
||||
import type { ApiAccountUpdateRequest } from '~~/shared/api-types';
|
||||
import type { Subtab, Tab } from '@/utils/miieditor';
|
||||
import { watchOnce } from '@vueuse/core';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -187,7 +188,7 @@ async function renderMii(_e?: Event, sizeChange?: boolean) {
|
||||
loadingCanvas.value = false;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
watchOnce(miiCanvas, () => {
|
||||
renderMii();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user