完善了资产标签的功能

This commit is contained in:
dushixiang
2021-01-04 23:06:08 +08:00
parent de771ebf24
commit 74b8485705
3 changed files with 13 additions and 13 deletions

View File

@ -72,6 +72,10 @@ func AssetUpdateEndpoint(c echo.Context) error {
item.CredentialId = "-"
}
if len(item.Tags) == 0 {
item.Tags = "-"
}
model.UpdateAssetById(&item, id)
return Success(c, nil)