浏览代码

fix(frontend): when navigating to a station by id, history should be replaced)

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 年之前
父节点
当前提交
3dbf606516
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/src/pages/Station/index.vue

+ 1 - 1
frontend/src/pages/Station/index.vue

@@ -1545,7 +1545,7 @@ export default {
 						// change url to use station name instead of station id
 						if (name !== this.stationIdentifier) {
 							// eslint-disable-next-line no-restricted-globals
-							history.pushState({}, null, name);
+							this.$router.replace(name);
 						}
 
 						this.joinStation({