ваше сообщение коммита

This commit is contained in:
2025-07-11 16:45:09 +03:00
parent e0ec889863
commit 584ff401ad
42 changed files with 1945 additions and 1004 deletions

View File

@@ -54,11 +54,14 @@ export default {
throw error;
}
},
async getFilteredRows(tableId, { product = '', tags = [] } = {}) {
async getFilteredRows(tableId, { product = '' } = {}) {
const params = new URLSearchParams();
if (product) params.append('product', product);
if (tags.length) params.append('tags', tags.join(','));
const res = await api.get(`/tables/${tableId}/rows?${params.toString()}`);
return res.data;
},
async rebuildIndex(tableId) {
const res = await api.post(`/tables/${tableId}/rebuild-index`);
return res.data;
}
};