Remove vuex

This commit is contained in:
2022-02-10 15:49:21 +00:00
parent 8b0e368d58
commit c693625e34
21 changed files with 322 additions and 351 deletions

View File

@ -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");