perf: import some modules dynamically
This commit is contained in:
parent
149bbf17eb
commit
67f3277ae2
@ -37,8 +37,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'
|
||||
@ -68,8 +66,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