fix: accept scheme-less drainage URLs

This commit is contained in:
hectorzhao
2026-08-28 17:58:45 +08:00
parent c68ac7a3db
commit 5328bb09bf
11 changed files with 50 additions and 13 deletions
@@ -64,8 +64,9 @@ export function DrainageFormModal({ applicationId, item, onClose, onSubmit }: {
<h3></h3>
<Input
label="* 引流url或号码"
hint="支持带或不带协议的 URL、手机号码或固定电话号码"
onChange={(event) => update('url', event.target.value)}
placeholder="请输入引流url或号码"
placeholder="例如:example.com/path 或 13800138000"
required
value={form.url}
/>
+1 -1
View File
@@ -251,7 +251,7 @@ function DrainageModal({ item, signature, onClose, onSaved }: { item?: ClientDra
>
<div className="signature-form">
{item?.rejectReason ? <div className="client-signature-reason"><strong></strong><span>{item.rejectReason}</span></div> : null}
<Input hint="支持 http/https URL、手机号码或固定电话号码" label="引流 URL 或号码" onChange={(event) => setUrl(event.target.value)} placeholder="例如:https://example.com 或 13800138000" required value={url} />
<Input hint="支持带或不带协议的 URL、手机号码或固定电话号码" label="引流 URL 或号码" onChange={(event) => setUrl(event.target.value)} placeholder="例如:example.com/path 或 13800138000" required value={url} />
<Textarea label="说明" onChange={(event) => setRemark(event.target.value)} rows={3} value={remark ?? ''} />
<section className="client-signature-form-section">
<div><h3></h3><p> URL </p></div>