Skip to content

Commit

Permalink
fix: 解决上传证书状态异常的问题 (#4999)
Browse files Browse the repository at this point in the history
Refs #4976
  • Loading branch information
zhengkunwang223 authored and wanghe-fit2cloud committed May 22, 2024
1 parent 2ec19fb commit 56ce7dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/app/service/website_ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error {
websiteSSL := &model.WebsiteSSL{
Provider: constant.Manual,
Description: req.Description,
Status: constant.SSLReady,
}
var err error
if req.SSLID > 0 {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/website/ssl/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ const buttons = [
click: function (row: Website.SSLDTO) {
onEdit(row);
},
disabled: function (row: Website.SSLDTO) {
return row.provider == 'selfSigned';
show: function (row: Website.SSLDTO) {
return row.provider != 'manual' && row.provider != 'selfSigned';
},
},
{
Expand Down

0 comments on commit 56ce7dd

Please sign in to comment.