Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

倒计时行为按钮,api请求无论成功与否,均会进入倒计时 #10264

Closed
echome123 opened this issue May 18, 2024 · 0 comments
Closed
Assignees

Comments

@echome123
Copy link

描述问题:

倒计时的行为按钮,按照正常逻辑来讲,当api请求失败,按钮不应该进入倒计时状态,目前是无论何种结果,均会进入倒计时,影响体验

如何复现(请务必完整填写下面内容):

sdk 6.4.1版本

amis schema 代码:

{
  "type": "page",
  "body": {
    "type": "form",
    "body": [
      {
        "name": "phone",
        "type": "input-text",
        "required": true,
        "label": "手机号",
        "addOn": {
          "name": "countdown1",
          "label": "发送验证码",
          "type": "button",
          "countDown": 60,
          "countDownTpl": "${timeLeft} 秒后重发",
          "actionType": "ajax",
          "api": "/amis/api/mock2/form/saveForm?phone=${phone}"
        }
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants