perf: import some modules dynamically
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
1392d7f101
commit
5bf81d016f
@ -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 })
|
||||
|
Reference in New Issue
Block a user