🐛 删除文章无效标签问题修复

This commit is contained in:
ronger 2020-03-16 08:49:21 +08:00
parent b3c82d2bdd
commit 678c244545

View File

@ -59,7 +59,7 @@ public class TagServiceImpl extends AbstractService<Tag> implements TagService {
addTagArticle = true; addTagArticle = true;
addUserTag = true; addUserTag = true;
} else { } else {
for(int m=0,n=articleTagDTOList.size();m<n; m++) { for(int m=0,n=articleTagDTOList.size()-1;m<n; m++) {
ArticleTagDTO articleTag = articleTagDTOList.get(m); ArticleTagDTO articleTag = articleTagDTOList.get(m);
if (articleTag.getIdTag().equals(tag.getIdTag())) { if (articleTag.getIdTag().equals(tag.getIdTag())) {
articleTagDTOList.remove(articleTag); articleTagDTOList.remove(articleTag);