mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-20 20:04:31 +08:00
修改订阅名称必填
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user