稍微完善以下历史搜索

This commit is contained in:
luchenqun 2017-04-04 22:29:32 +08:00
parent 560d3f8515
commit 89d4e3d550
1 changed files with 6 additions and 4 deletions

View File

@ -183,10 +183,12 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
bookmarkService.userInfo({})
.then((data) => {
$scope.searchHistory = JSON.parse(data.search_history || '[]');
$timeout(function() {
$('.search-item').popup({
on: 'focus',
inline: true
});
}, 500)
})
.catch((err) => {
toastr.error('获取信息失败。错误信息:' + JSON.stringify(err), "错误");