feat: get lego's logs and send them to frontend

This commit is contained in:
0xJacky 2023-05-06 23:24:25 +08:00 committed by Hintay
parent 2529ca90ca
commit cab5ff2c78
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
2 changed files with 41 additions and 5 deletions

View file

@ -154,7 +154,10 @@ const issue_cert = async (config_name: string, server_name: string, callback: Fu
switch (r.status) {
case 'info':
progressPercent.value += 5
// If it's a lego log, do not increase the percent.
if (r.message.indexOf('[INFO]') == -1) {
progressPercent.value += 5
}
break
default:
modalClosable.value = true