fix(sdk): cannot convert a symbol value to a string
Some checks are pending
Build docker image / build-and-push (push) Waiting to run
Build pro image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase frontEnd test / frontend-test (18) (push) Waiting to run

This commit is contained in:
chenos 2024-10-18 23:52:07 +08:00
parent cdc2d62842
commit 72867c6acb

View File

@ -363,7 +363,7 @@ export class APIClient {
}
let url = name.split('.').join(`/${encodeURIComponent(of) || '_'}/`);
url += `:${actionName}`;
url += `:${actionName.toString()}`;
const config: AxiosRequestConfig = { url };
if (['get', 'list'].includes(actionName)) {
config['method'] = 'get';