Update noet-controller.js

This commit is contained in:
luchenqun 2019-01-10 16:11:46 +08:00
parent b10d36f06f
commit 529787a90d
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
$scope.updateNote = function () { $scope.updateNote = function () {
if(!$scope.content) { if(!$scope.content) {
toastr.error('更新失败,更新内容不能为空', "提示"); toastr.error('更新失败,更新内容不能为空', "提示");
return;
} }
var tagName = ''; var tagName = '';
$scope.tags.forEach((tag) => { $scope.tags.forEach((tag) => {