|
|
@@ -29,7 +29,7 @@
|
|
|
:placeholder="$t('common.pleaseenter')" autocomplete="off" :rules="formRules.vcode">
|
|
|
<template #button>
|
|
|
<Button size="small" type="danger" :disabled="loading" @click="sendVerifyCode">
|
|
|
- <span v-if="isCountdown">{{ $t('user.forget.sendagain') }}({{ currentTime.seconds }})</span>
|
|
|
+ <span v-if="isCountdown">{{ $t('user.forget.sendagain') }}({{ currentTime }})</span>
|
|
|
<span v-else>{{ $t('user.forget.getsmscode') }}</span>
|
|
|
</Button>
|
|
|
</template>
|
|
|
@@ -102,7 +102,10 @@ const countdown = useCountDown({
|
|
|
})
|
|
|
|
|
|
// 倒计时剩余时间
|
|
|
-const currentTime = computed(() => countdown.current.value)
|
|
|
+const currentTime = computed(() => {
|
|
|
+ const { total } = countdown.current.value
|
|
|
+ return (total / 1000).toFixed(0)
|
|
|
+})
|
|
|
|
|
|
// 表单数据
|
|
|
const formData = reactive<Model.ResetPasswordReq & { confirmpassword: string }>({
|