@@ -157,19 +157,17 @@ function goLogin() {
const { t } = useI18n()
const { register } = useUserStore()
-showLoadingToast({
- message: t('loading'),
- forbidClick: true
-})
+
function onSubmit() {
+ toast.loading(t('loading'))
register(form.value.email, form.value.username, form.value.password, form.value.invitor)
.then(res => {
- closeToast()
+ toast.dismiss()
toast.success(t('login.register'))
router.go(-2)
})
.catch(e => {
toast(e)
}