fix typo and add render (#410)

This commit is contained in:
dujiashu 2020-11-18 18:16:56 +08:00 committed by GitHub
parent a5672bc1b3
commit a6b160caed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func resourceSearchGet(c *gin.Context) {
type containerSyncForm struct {
Name string `json:"name" binding:"required"`
Type string `json:"type" binding:"type"`
Type string `json:"type" binding:"required"`
Items []v1ContainersRegisterItem `json:"items"`
}
@ -44,6 +44,7 @@ func v1ContainerSyncPost(c *gin.Context) {
count := len(sf.Items)
if count == 0 {
renderMessage(c, "")
return
}