|
@@ -144,15 +144,15 @@ const getMsgCode = async () => {
|
|
const phoneNum = data.value.userName
|
|
const phoneNum = data.value.userName
|
|
console.log('getMsgCode',phoneNum)
|
|
console.log('getMsgCode',phoneNum)
|
|
const res = await getMsgAuthCode('+86', phoneNum)
|
|
const res = await getMsgAuthCode('+86', phoneNum)
|
|
- // console.log('res', res)
|
|
|
|
- // let timer = null
|
|
|
|
- // if (res.success) {
|
|
|
|
- // timer && clearTimeout(timer)
|
|
|
|
- // isDisableMsg.value = true
|
|
|
|
- // timer = setTimeout(() => {
|
|
|
|
- // isDisableMsg.value = false
|
|
|
|
- // }, 60 * 1000)
|
|
|
|
- // }
|
|
|
|
|
|
+ console.log('res', res)
|
|
|
|
+ let timer = null
|
|
|
|
+ if (res.success) {
|
|
|
|
+ timer && clearTimeout(timer)
|
|
|
|
+ isDisableMsg.value = true
|
|
|
|
+ timer = setTimeout(() => {
|
|
|
|
+ isDisableMsg.value = false
|
|
|
|
+ }, 60 * 1000)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
// const handleSelect = (orgId: number) => {
|
|
// const handleSelect = (orgId: number) => {
|