Skip to content

Commit

Permalink
perf: 跨域地址过滤空行
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed May 9, 2024
1 parent 5838a4f commit 8038385
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ const submit = async (formEl: FormInstance | undefined) => {
const obj = {
allow_cross_domain: form.value.allow_cross_domain,
cross_domain_list: form.value.cross_domain_list
? form.value.cross_domain_list.split('\n')
? form.value.cross_domain_list.split('\n').filter(function (item: string) {
return item !== ''
})
: []
}
overviewApi.putAPIKey(id as string, APIKeyId.value, obj, loading).then((res) => {
Expand Down

0 comments on commit 8038385

Please sign in to comment.