监控中心监控地址支持逗号空格自动分隔

pull/605/head
vapao 2023-03-29 18:41:36 +08:00
parent cc6df9ca98
commit a450bc4e74
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export default observer(function () {
}
function getStyle(t) {
return t.includes(store.record.type) ? {display: 'flex'} : {display: 'none'}
return t.includes(store.record.type) ? {} : {display: 'none'}
}
const {name, desc, type, targets, extra, group} = store.record;
@ -117,6 +117,7 @@ export default observer(function () {
<Select
mode="tags"
value={targets}
tokenSeparators={[',', ' ']}
onChange={v => store.record.targets = v}
placeholder="http(s)://开头,支持多个地址,每输入完成一个后按回车确认"
notFoundContent={null}/>
@ -125,6 +126,7 @@ export default observer(function () {
<Select
mode="tags"
value={targets}
tokenSeparators={[',', ' ']}
onChange={v => store.record.targets = v}
placeholder="IP或域名支持多个地址每输入完成一个后按回车确认"
notFoundContent={null}/>