diff --git a/template/js/index.js b/template/js/index.js index a0416adb25..65cbc40052 100644 --- a/template/js/index.js +++ b/template/js/index.js @@ -17,6 +17,8 @@ this.query = ''; // this.page_size = 10; //每页显示10条 + this.elm_info.innerHTML = this.commands.length; + this.init() this.goToIndex() } @@ -99,7 +101,7 @@ } } if(relese ===0){ - myLi.innerHTML = '没有任何内容,请尝试输入其它字符!'; + myLi.innerHTML = this.query?'没有搜索到任何内容,请尝试输入其它字符!':'请尝试输入一些字符,进行搜素!'; self.elm_result.innerHTML = myLi.outerHTML; } } diff --git a/template/search.ejs b/template/search.ejs index 6d9e6023fa..bf255fe665 100644 --- a/template/search.ejs +++ b/template/search.ejs @@ -16,6 +16,7 @@ \ No newline at end of file