Remove vuex
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { TITLE } from "../store/mutation-types";
|
||||
import { LOGIN } from '../store/action-types'
|
||||
import { defineComponent } from "vue";
|
||||
import { useSessionStore } from "../stores/session";
|
||||
|
||||
export default defineComponent({
|
||||
data() {
|
||||
@ -15,12 +14,12 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$store.commit(TITLE, "Login");
|
||||
document.title = "Budgeteer - Login";
|
||||
},
|
||||
methods: {
|
||||
formSubmit(e : MouseEvent) {
|
||||
e.preventDefault();
|
||||
this.$store.dispatch(LOGIN, this.$data.login)
|
||||
useSessionStore().login(this.$data.login)
|
||||
.then(x => {
|
||||
this.$data.error = "";
|
||||
this.$router.replace("/dashboard");
|
||||
|
Reference in New Issue
Block a user