fixed #26 + loaded matches now still loaded after visiting match
This commit is contained in:
@@ -43,11 +43,13 @@
|
||||
<script>
|
||||
import {GoToPlayer, SaveLastVisitedToLocalStorage, setTitle} from "../utils";
|
||||
import {onBeforeMount, ref} from "vue";
|
||||
import {useStore} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'Home',
|
||||
setup() {
|
||||
setTitle('Home')
|
||||
const store = useStore()
|
||||
|
||||
const recentVisited = ref([])
|
||||
|
||||
@@ -78,7 +80,10 @@ export default {
|
||||
loadRecentVisited()
|
||||
}
|
||||
|
||||
onBeforeMount(() => loadRecentVisited())
|
||||
onBeforeMount(() => {
|
||||
loadRecentVisited()
|
||||
store.commit('resetPlayerDetails')
|
||||
})
|
||||
|
||||
return {recentVisited, GoToPlayer, removeRecentVisited}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user