perf: import some modules dynamically
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
WofWca 2023-02-28 13:35:53 +04:00
parent 1392d7f101
commit 5bf81d016f

View File

@ -35,8 +35,6 @@ import NoAuthWrapper from '@/components/misc/no-auth-wrapper.vue'
import Ready from '@/components/misc/ready.vue'
import {setLanguage} from '@/i18n'
import AccountDeleteService from '@/services/accountDelete'
import {success} from '@/message'
import {useAuthStore} from '@/stores/auth'
import {useBaseStore} from '@/stores/base'
@ -64,8 +62,11 @@ watch(accountDeletionConfirm, async (accountDeletionConfirm) => {
return
}
const messageP = import('@/message')
const AccountDeleteService = (await import('@/services/accountDelete')).default
const accountDeletionService = new AccountDeleteService()
await accountDeletionService.confirm(accountDeletionConfirm)
const {success} = await messageP
success({message: t('user.deletion.confirmSuccess')})
authStore.refreshUserInfo()
}, { immediate: true })