Skip to content

Commit

Permalink
fix: result repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed Oct 26, 2016
1 parent 11a44bf commit a8ca928
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function search($keyWordArr){
commandList = [];
$searchArr = {
'category': $keyWordArr.shift(),
'args': $keyWordArr
'args': $keyWordArr,
'startTime': startTime = new Date().getTime()
};
getIpcMsg('result', function(event, arg){
//存在多个json组合的情况
Expand Down
3 changes: 2 additions & 1 deletion download/UAfred-linux-ia32/resources/app/README_DEV.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
制作插件
----
* 你可以用任何你顺手或者想练手的程序写代码,只要保证配置文件正确及最终返回值为符合格式的json串即可
* 必须文件:`config.json` 及你自己的程序文件
* 你可以用任何你顺手或者想练手的程序写代码,只要保证配置文件(`config.json`)正确及你的程序文件最终返回值为符合格式的json串即可
* 记得参考已写好的demo
* 百无禁忌

Expand Down
3 changes: 2 additions & 1 deletion download/UAfred-linux-ia32/resources/app/app/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function search($keyWordArr){
commandList = [];
$searchArr = {
'category': $keyWordArr.shift(),
'args': $keyWordArr
'args': $keyWordArr,
'startTime': startTime = new Date().getTime()
};
getIpcMsg('result', function(event, arg){
//存在多个json组合的情况
Expand Down
3 changes: 2 additions & 1 deletion download/UAfred-linux-x64/resources/app/README_DEV.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
制作插件
----
* 你可以用任何你顺手或者想练手的程序写代码,只要保证配置文件正确及最终返回值为符合格式的json串即可
* 必须文件:`config.json` 及你自己的程序文件
* 你可以用任何你顺手或者想练手的程序写代码,只要保证配置文件(`config.json`)正确及你的程序文件最终返回值为符合格式的json串即可
* 记得参考已写好的demo
* 百无禁忌

Expand Down
3 changes: 2 additions & 1 deletion download/UAfred-linux-x64/resources/app/app/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function search($keyWordArr){
commandList = [];
$searchArr = {
'category': $keyWordArr.shift(),
'args': $keyWordArr
'args': $keyWordArr,
'startTime': startTime = new Date().getTime()
};
getIpcMsg('result', function(event, arg){
//存在多个json组合的情况
Expand Down

0 comments on commit a8ca928

Please sign in to comment.