chore: do not import message dynamically
Since it was not done consistently, it would not get imported dynamically anyway. This fixes the compile warnings.
This commit is contained in:
parent
97b7592e7c
commit
6ad83c0685
@ -47,7 +47,7 @@ import AddToHomeScreen from '@/components/home/AddToHomeScreen.vue'
|
|||||||
import DemoMode from '@/components/home/DemoMode.vue'
|
import DemoMode from '@/components/home/DemoMode.vue'
|
||||||
|
|
||||||
const importAccountDeleteService = () => import('@/services/accountDelete')
|
const importAccountDeleteService = () => import('@/services/accountDelete')
|
||||||
const importMessage = () => import('@/message')
|
import {success} from '@/message'
|
||||||
|
|
||||||
const baseStore = useBaseStore()
|
const baseStore = useBaseStore()
|
||||||
const authStore = useAuthStore()
|
const authStore = useAuthStore()
|
||||||
@ -69,11 +69,9 @@ watch(accountDeletionConfirm, async (accountDeletionConfirm) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const messageP = importMessage()
|
|
||||||
const AccountDeleteService = (await importAccountDeleteService()).default
|
const AccountDeleteService = (await importAccountDeleteService()).default
|
||||||
const accountDeletionService = new AccountDeleteService()
|
const accountDeletionService = new AccountDeleteService()
|
||||||
await accountDeletionService.confirm(accountDeletionConfirm)
|
await accountDeletionService.confirm(accountDeletionConfirm)
|
||||||
const {success} = await messageP
|
|
||||||
success({message: t('user.deletion.confirmSuccess')})
|
success({message: t('user.deletion.confirmSuccess')})
|
||||||
authStore.refreshUserInfo()
|
authStore.refreshUserInfo()
|
||||||
}, { immediate: true })
|
}, { immediate: true })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user