Skip to content

Commit 8038385

Browse files
perf: 跨域地址过滤空行
1 parent 5838a4f commit 8038385

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/views/application-overview/component/SettingAPIKeyDialog.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ const submit = async (formEl: FormInstance | undefined) => {
7575
const obj = {
7676
allow_cross_domain: form.value.allow_cross_domain,
7777
cross_domain_list: form.value.cross_domain_list
78-
? form.value.cross_domain_list.split('\n')
78+
? form.value.cross_domain_list.split('\n').filter(function (item: string) {
79+
return item !== ''
80+
})
7981
: []
8082
}
8183
overviewApi.putAPIKey(id as string, APIKeyId.value, obj, loading).then((res) => {

0 commit comments

Comments
 (0)