Added Pinia account state tracking. Also modified router to go to Start if no account is defined.

This commit is contained in:
Matthew Aaron Raymer
2022-12-02 18:54:47 +08:00
parent 3c388da22d
commit 5c14275a75
4 changed files with 22 additions and 19 deletions

View File

@@ -3,8 +3,7 @@ import { createApp } from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import { useAccountStore } from "./store/account";
import "./assets/styles/tailwind.css";
import { library } from "@fortawesome/fontawesome-svg-core";
@@ -50,7 +49,6 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
createApp(App)
.component("fa", FontAwesomeIcon)
.use(store)
.use(createPinia())
.use(router)
.mount("#app");