feat: Fix 500 Error After Setting Authorized IP (#7334)

pull/7336/head
zhengkunwang 2024-12-11 18:47:45 +08:00 committed by GitHub
parent 4d760d3019
commit 75d94f5b89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func WhiteAllow() gin.HandlerFunc {
}
}
code := LoadErrCode()
helper.ErrWithHtml(c, code, "ip_limit")
helper.ErrWithHtml(c, code, "err_ip_limit")
}
}

View File

@ -259,7 +259,7 @@ const get = async () => {
}
paramModel.value.memoryLimit = res.data.memoryLimit;
paramModel.value.cpuQuota = res.data.cpuQuota;
paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'MB';
paramModel.value.memoryUnit = res.data.memoryUnit !== '' ? res.data.memoryUnit : 'M';
paramModel.value.allowPort = res.data.allowPort;
paramModel.value.containerName = res.data.containerName;
paramModel.value.advanced = false;