mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
修改订阅名称必填
This commit is contained in:
parent
e1e6261b4f
commit
6c34045a48
|
@ -243,6 +243,7 @@ const SubscriptionModal = ({
|
||||||
if (text.startsWith('ql ')) {
|
if (text.startsWith('ql ')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
onPaste(e);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const formatParams = (sub) => {
|
const formatParams = (sub) => {
|
||||||
|
@ -294,9 +295,9 @@ const SubscriptionModal = ({
|
||||||
confirmLoading={loading}
|
confirmLoading={loading}
|
||||||
>
|
>
|
||||||
<Form form={form} name="form_in_modal" layout="vertical">
|
<Form form={form} name="form_in_modal" layout="vertical">
|
||||||
<Form.Item name="name" label="名称">
|
<Form.Item name="name" label="名称" rules={[{ required: true }]}>
|
||||||
<Input
|
<Input
|
||||||
placeholder="支持拷贝ql repo/raw命令,粘贴导入"
|
placeholder="支持拷贝 ql repo/raw 命令,粘贴导入"
|
||||||
onPaste={onNamePaste}
|
onPaste={onNamePaste}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user