搜索没有输入关键字不保存
This commit is contained in:
parent
977233be66
commit
1e5fd345c5
|
|
@ -40,3 +40,4 @@ jspm_packages
|
|||
uploads
|
||||
/public/images/snap/
|
||||
/public/images/favicon/
|
||||
.tags
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
|
|||
$window.open('http://www.baidu.com/s?tn=mybookmark.cn&ch=3&ie=utf-8&wd=' + encodeURIComponent(searchWord), '_blank');
|
||||
}
|
||||
|
||||
if(!searchWord){ return; }
|
||||
|
||||
var newItem = {
|
||||
t: searchOption,
|
||||
d: searchWord,
|
||||
|
|
|
|||
Loading…
Reference in New Issue