Convert frontend to Vue #3

Merged
jacob1123 merged 158 commits from vue into master 2022-02-08 22:20:11 +01:00
Showing only changes of commit 4f72751ed6 - Show all commits

View File

@ -16,9 +16,10 @@ const store = createStore({
}, },
mutations: { mutations: {
initializeStore(state) { initializeStore(state) {
if(localStorage.getItem("store")){ let store = localStorage.getItem("store");
if(store){
this.replaceState( this.replaceState(
Object.assign(state, JSON.parse(localStorage.getItem("store"))) Object.assign(state, store)
); );
} }
}, },