fix: align portal queries and super auth

This commit is contained in:
2026-01-25 15:11:08 +08:00
parent bb374f5c52
commit ea342bf8a3
14 changed files with 340 additions and 23 deletions

View File

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