mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-10 16:47:59 -05:00
model list page url case sensitivity
This commit is contained in:
@@ -94,7 +94,7 @@ const params = useUrlSearchParams('history', {initialValue: {page: "1"}})
|
||||
const props = defineProps({
|
||||
model: {
|
||||
type: String as PropType<EditorSupportedModels>,
|
||||
default: 'Food'
|
||||
default: 'food'
|
||||
},
|
||||
})
|
||||
|
||||
@@ -177,7 +177,7 @@ function loadItems({page, itemsPerPage, search, sortBy, groupBy}) {
|
||||
|
||||
function changeModel(m: Model) {
|
||||
tablePage.value = 1
|
||||
router.push({name: 'ModelListPage', params: {model: m.name}})
|
||||
router.push({name: 'ModelListPage', params: {model: m.name.toLowerCase()}})
|
||||
window.scrollTo({top: 0, behavior: 'smooth'})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user