diff --git a/src/App.vue b/src/App.vue index 68028da77..ebbf63fc0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,8 +42,8 @@ import {useBaseStore} from '@/stores/base' import {useColorScheme} from '@/composables/useColorScheme' import {useBodyClass} from '@/composables/useBodyClass' -const importAccountDeleteService = async () => (await import('@/services/accountDelete')).default -const importSuccess = async () => (await import('@/message')).success +const importAccountDeleteService = () => import('@/services/accountDelete') +const importMessage = () => import('@/message') const baseStore = useBaseStore() const authStore = useAuthStore() @@ -65,11 +65,11 @@ watch(accountDeletionConfirm, async (accountDeletionConfirm) => { return } - const successP = importSuccess() - const AccountDeleteService = await importAccountDeleteService() + const messageP = importMessage() + const AccountDeleteService = (await importAccountDeleteService()).default const accountDeletionService = new AccountDeleteService() await accountDeletionService.confirm(accountDeletionConfirm) - const success = await successP + const {success} = await messageP success({message: t('user.deletion.confirmSuccess')}) authStore.refreshUserInfo() }, { immediate: true })