model list page url case sensitivity

This commit is contained in:
vabene1111
2024-10-08 18:50:16 +02:00
parent a8256b461a
commit 9395a456f0
2 changed files with 3 additions and 3 deletions

View File

@@ -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'})
}