瀏覽代碼

fix: always close manageStation if going from home to station

Kristian Vos 2 年之前
父節點
當前提交
d279905222
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      frontend/src/main.js

+ 1 - 2
frontend/src/main.js

@@ -221,8 +221,7 @@ router.beforeEach((to, from, next) => {
 	}
 
 	if (from.name === "home" && to.name === "station") {
-		if (store.state.modalVisibility.modals.manageStation)
-			store.dispatch("modalVisibility/closeModal", "manageStation");
+		store.dispatch("modalVisibility/closeModal", "manageStation");
 	}
 
 	if (ws.socket && to.fullPath !== from.fullPath) {