소스 검색

refactor: when adding/editing an account, you get redirected to accounts page

Kristian Vos 5 년 전
부모
커밋
131df9859e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      frontend/vue/pages/AddAccount.vue
  2. 1 1
      frontend/vue/pages/EditAccount.vue

+ 1 - 1
frontend/vue/pages/AddAccount.vue

@@ -24,7 +24,7 @@ export default {
 			this.socket.emit("account.add", account, (res) => {
 				console.log(res);
 				if (res.status === "success") {
-					this.$router.push("/")
+					this.$router.push("/accounts")
 				}
 			});
 		}

+ 1 - 1
frontend/vue/pages/EditAccount.vue

@@ -25,7 +25,7 @@ export default {
 			this.socket.emit("account.editById", account._id, account, (res) => {
 				console.log(res);
 				if (res.status === "success") {
-					this.$router.push("/")
+					this.$router.push("/accounts")
 				}
 			});
 		}