提交 b191c607 authored 作者: xiaotuoluo's avatar xiaotuoluo

1

上级 2665739a
...@@ -57,7 +57,7 @@ const cancelAction = () => { ...@@ -57,7 +57,7 @@ const cancelAction = () => {
} }
const saveAction = async() => { const saveAction = async() => {
loading.value = true
// const myToken = getToken() // const myToken = getToken()
// const dict = { // const dict = {
// code:code.value, // code:code.value,
...@@ -84,6 +84,7 @@ const saveAction = async() => { ...@@ -84,6 +84,7 @@ const saveAction = async() => {
return; return;
} }
try{ try{
loading.value = true
const res = await changePassword(code.value, password.value,email.value) const res = await changePassword(code.value, password.value,email.value)
loading.value = false loading.value = false
if(res.code == 1){ if(res.code == 1){
...@@ -99,6 +100,10 @@ const saveAction = async() => { ...@@ -99,6 +100,10 @@ const saveAction = async() => {
// 点击开始倒计时 // 点击开始倒计时
const startCountdown = () => { const startCountdown = () => {
if(email.value == ''){
ElMessage.warning('please input email')
return
}
if (isCounting.value) return if (isCounting.value) return
isCounting.value = true isCounting.value = true
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论