搜索框内容更新

This commit is contained in:
luchenqun 2017-04-10 17:09:57 +08:00
parent 71c2d169a1
commit eff27d668a
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ app.controller('menuCtr', ['$scope', '$stateParams', '$state', '$window', '$time
$scope.searchByHistory = function(type, data) { $scope.searchByHistory = function(type, data) {
$scope.searchWord = data; $scope.searchWord = data;
$('.search-item').val($scope.searchWord);
$('.js-search-option').dropdown('set value', type); $('.js-search-option').dropdown('set value', type);
var types = {}; var types = {};
types[0] = '书签'; types[0] = '书签';