更新插入出错不执行操作

This commit is contained in:
luchenqun 2017-03-16 17:17:54 +08:00
parent 8f5635c771
commit fad2bb89cc
1 changed files with 6 additions and 2 deletions

View File

@ -99,8 +99,12 @@ app.controller('editCtr', ['$scope', '$state', '$timeout', '$document', 'bookmar
toastr.error('检撤到您的书签链接非法是否忘记加http或者https了建议直接从打开浏览器地址栏复制出来直接粘贴到输入框。', "错误");
return;
}
if (selectedTags.length < 1) {
toastr.error('您至少要选择一个分类!如果暂时没想到放到哪个分类,可以先选择未分类', "错误");
if (selectedTags.length < 1 || $scope.tagsError) {
toastr.error('您至少要选择一个分类!最多选择三个分类!如果暂时没想到放到哪个分类,可以先选择未分类', "错误");
return;
}
if ($scope.titleError) {
toastr.error('书签标题不能为空!', "错误");
return;
}
if ($scope.add) {