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