diff --git a/src/components/Loader.vue b/src/components/Loader.vue new file mode 100644 index 0000000..e3073bb --- /dev/null +++ b/src/components/Loader.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/pages/account/miieditor/index.vue b/src/pages/account/miieditor/index.vue index 7503d6b..aeb58e0 100644 --- a/src/pages/account/miieditor/index.vue +++ b/src/pages/account/miieditor/index.vue @@ -30,6 +30,7 @@ const miiDataString: string = profile.value?.mii?.data || fallbackMiiData; const activeTab = ref('faceType'); const activeSubTab = ref('faceType'); const activeSubPage = ref(0); +const hasSaved = ref(false); // mii rendering business const mii = ref(null); const miiCanvas = ref(null); @@ -287,10 +288,7 @@ const { isLoading: isSaving, execute } = useAsync({ }); }, onSuccess() { - toasts.publish({ - type: 'success', - text: t('miiEditor.miiSaved') - }); + hasSaved.value = true; setTimeout(() => { navigateTo('/account'); }, 3000); @@ -306,7 +304,7 @@ const { isLoading: isSaving, execute } = useAsync({