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