mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
修复粘贴订阅私有仓库字段
This commit is contained in:
parent
05d47be1c8
commit
15678b029c
|
@ -204,13 +204,15 @@ const SubscriptionModal = ({
|
|||
] = text
|
||||
.split(' ')
|
||||
.map((x) => x.trim().replace(/\"/g, '').replace(/\'/, ''));
|
||||
const _type =
|
||||
type === 'raw'
|
||||
? 'file'
|
||||
: url.startsWith('http')
|
||||
? 'public-repo'
|
||||
: 'private-repo';
|
||||
|
||||
form.setFieldsValue({
|
||||
type:
|
||||
type === 'raw'
|
||||
? 'file'
|
||||
: url.startsWith('http')
|
||||
? 'public-repo'
|
||||
: 'private-repo',
|
||||
type: _type,
|
||||
url,
|
||||
whitelist,
|
||||
blacklist,
|
||||
|
@ -219,6 +221,7 @@ const SubscriptionModal = ({
|
|||
extensions,
|
||||
alias: formatAlias(url, branch),
|
||||
});
|
||||
setType(_type);
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user