muwoo / blogs

📚一个前端的博客。
2.32k stars 350 forks source link

base类重复match #39

Open PlusLius opened 5 years ago

PlusLius commented 5 years ago

https://github.com/muwoo/blogs/blob/fc0615f6e703f285475e99eaf25caf66f3250166/src/router/router/src/history/hash.js#L18

https://github.com/muwoo/blogs/blob/fc0615f6e703f285475e99eaf25caf66f3250166/src/router/router/src/history/base.js#L28

PlusLius commented 5 years ago

https://github.com/muwoo/blogs/blob/fc0615f6e703f285475e99eaf25caf66f3250166/src/router/router/src/index.js#L40

 -  this.history.replace(location) 
 + this.history.replaceState(location)