稍微完善以下历史搜索
This commit is contained in:
parent
560d3f8515
commit
89d4e3d550
|
|
@ -183,10 +183,12 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
|
||||||
bookmarkService.userInfo({})
|
bookmarkService.userInfo({})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
$scope.searchHistory = JSON.parse(data.search_history || '[]');
|
$scope.searchHistory = JSON.parse(data.search_history || '[]');
|
||||||
$('.search-item').popup({
|
$timeout(function() {
|
||||||
on: 'focus',
|
$('.search-item').popup({
|
||||||
inline: true
|
on: 'focus',
|
||||||
});
|
inline: true
|
||||||
|
});
|
||||||
|
}, 500)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
toastr.error('获取信息失败。错误信息:' + JSON.stringify(err), "错误");
|
toastr.error('获取信息失败。错误信息:' + JSON.stringify(err), "错误");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue