fix: align tenant_id content filter

This commit is contained in:
2026-01-09 10:25:26 +08:00
parent cd96033a3d
commit bf0b57f537
4 changed files with 7 additions and 7 deletions

View File

@@ -2,10 +2,10 @@ import { request } from '../utils/request';
export const contentApi = {
list: (params) => {
if (params.tenantId) {
const { tenantId, ...rest } = params;
if (params.tenant_id) {
const { tenant_id: tenantID, ...rest } = params;
const qs = new URLSearchParams(rest).toString();
return request(`/creators/${tenantId}/contents?${qs}`);
return request(`/creators/${tenantID}/contents?${qs}`);
}
const qs = new URLSearchParams(params).toString();
return request(`/contents?${qs}`);