Skip to content

Commit 3e206d1

Browse files
committed
修复输入导致原地址被修改
1 parent 746abfe commit 3e206d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎template/js/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
pushState:function(){
4747
if(window.history&&window.history.pushState)
4848
this.query ? history.pushState({},"linux_commands","#!kw="+this.query):
49-
history.pushState({},"linux_commands","/");
49+
history.pushState({},"linux_commands",window.location.pathname);
5050
},
5151
//简单模版
5252
simple:function(str,obj){

0 commit comments

Comments
 (0)