浏览代码

Hashes are removed from the URI before finishing transitions

theflametrooper 8 年之前
父节点
当前提交
e03c3decf0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      frontend/main.js

+ 1 - 0
frontend/main.js

@@ -36,6 +36,7 @@ document.onkeydown = event => {
 };
 
 router.beforeEach(transition => {
+	window.location.hash = '';
 	if (window.stationInterval) {
 		clearInterval(window.stationInterval);
 		window.stationInterval = 0;