diff --git a/public/scripts/controllers/note-controller.js b/public/scripts/controllers/note-controller.js index a39a194..f07f8bf 100644 --- a/public/scripts/controllers/note-controller.js +++ b/public/scripts/controllers/note-controller.js @@ -100,6 +100,7 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind $scope.tags.forEach((tag) => { if ($scope.currentTagId === tag.id) { tagName = tag.name; + tag.ncnt += 1; } if (!$scope.currentTagId) { if (tag.name == '未分类') { diff --git a/public/views/note.html b/public/views/note.html index fe96664..8c19c93 100644 --- a/public/views/note.html +++ b/public/views/note.html @@ -1,7 +1,7 @@