Removed window eventhub, replaced w/ store
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -81,7 +81,6 @@ export default {
|
||||
register(username, password)
|
||||
.then(data => {
|
||||
if (data.success && this.login()) {
|
||||
eventHub.$emit("setUserStatus");
|
||||
this.$router.push({ name: "profile" });
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user