Removed window eventhub, replaced w/ store

This commit is contained in:
2022-07-26 23:12:39 +02:00
parent 8216502eeb
commit 7478016384
2 changed files with 0 additions and 3 deletions

View File

@@ -6,8 +6,6 @@ import store from "./store";
import Toast from "./plugins/Toast";
import App from "./App.vue";
window.eventHub = new Vue();
Vue.use(VueRouter);
Vue.use(Toast);

View File

@@ -81,7 +81,6 @@ export default {
register(username, password)
.then(data => {
if (data.success && this.login()) {
eventHub.$emit("setUserStatus");
this.$router.push({ name: "profile" });
}
})