chore: clean up code

This commit is contained in:
0xJacky 2023-04-13 09:35:41 +08:00
parent 3cdc675e4f
commit 0f259e4331
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
9 changed files with 92 additions and 121 deletions

View file

@ -193,7 +193,12 @@ function add_server() {
}
function remove_server(index: number) {
props.ngx_config?.servers?.splice(index, 1)
Modal.confirm({
title: $gettext('Do you want to remove this server?'),
mask: false,
centered: true,
onOk: () => props.ngx_config?.servers?.splice(index, 1)
})
}
</script>