完善了资产标签的功能

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

No files matched your search

+4
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)