diff --git a/Services/client/src/components/PageLayout.vue b/Services/client/src/components/PageLayout.vue index dc5ed29..8dcad38 100644 --- a/Services/client/src/components/PageLayout.vue +++ b/Services/client/src/components/PageLayout.vue @@ -105,7 +105,14 @@ const folderFormComponent = ref>() > - ผลการค้นหา + + ผลการค้นหา + {{ + mode === 'admin' && + currentInfo.path !== '/' && + currentInfo.path.split('/').join(' / ') + }} + ({ AND: [], OR: [], @@ -61,6 +65,12 @@ async function submitSearch() { value: mime.getType(searchData.value.value) || '', exact: true, }) + if (currentInfo.value.path !== '/') { + submitSearchData.value.AND.push({ + field: 'path', + value: currentInfo.value.path, + }) + } } else { submitSearchData.value.OR.push({ field: searchData.value.field,