添加备忘录默认未分类
This commit is contained in:
parent
72beb74de5
commit
46294efc71
|
|
@ -41,3 +41,4 @@ uploads
|
|||
/public/images/snap/
|
||||
/public/images/favicon/
|
||||
.tags
|
||||
package-lock.json
|
||||
|
|
@ -69,6 +69,18 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
|
|||
$("#noteedit")[0].focus();
|
||||
});
|
||||
}
|
||||
console.log('$scope.showAddNote');
|
||||
// 没有选中分类,默认一个分类
|
||||
if (!$scope.currentTagId) {
|
||||
$scope.tags.forEach((tag) => {
|
||||
tag.clicked = false;
|
||||
if (tag.name == '未分类') {
|
||||
$scope.currentTagId = tag.id;
|
||||
tag.clicked = true;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
updateEditPos();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue