fix: move local storage list view to router
This commit is contained in:
parent
5916a44724
commit
76f4cca5fe
3 changed files with 16 additions and 23 deletions
|
|
@ -59,7 +59,6 @@ import {store} from '@/store'
|
|||
import {CURRENT_LIST} from '@/store/mutation-types'
|
||||
|
||||
import {getListTitle} from '@/helpers/getListTitle'
|
||||
import {saveListView} from '@/helpers/saveListView'
|
||||
import {saveListToHistory} from '@/modules/listHistory'
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
|
|
@ -76,10 +75,6 @@ const props = defineProps({
|
|||
|
||||
const route = useRoute()
|
||||
|
||||
// Save the current list view to local storage
|
||||
// We use local storage and not vuex here to make it persistent across reloads.
|
||||
saveListView(props.listId, props.viewName)
|
||||
|
||||
const listService = shallowRef(new ListService())
|
||||
const loadedListId = ref(0)
|
||||
|
||||
|
|
|
|||
Reference in a new issue