From 89d4e3d550bf8a9ba6690e38d43e97211884b8e7 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Tue, 4 Apr 2017 22:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8D=E5=BE=AE=E5=AE=8C=E5=96=84=E4=BB=A5?= =?UTF-8?q?=E4=B8=8B=E5=8E=86=E5=8F=B2=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/menus-controller.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/scripts/controllers/menus-controller.js b/public/scripts/controllers/menus-controller.js index f2d66cf..7392bbd 100644 --- a/public/scripts/controllers/menus-controller.js +++ b/public/scripts/controllers/menus-controller.js @@ -183,10 +183,12 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time bookmarkService.userInfo({}) .then((data) => { $scope.searchHistory = JSON.parse(data.search_history || '[]'); - $('.search-item').popup({ - on: 'focus', - inline: true - }); + $timeout(function() { + $('.search-item').popup({ + on: 'focus', + inline: true + }); + }, 500) }) .catch((err) => { toastr.error('获取信息失败。错误信息:' + JSON.stringify(err), "错误");