mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix(sdk): cannot convert a symbol value to a string
This commit is contained in:
parent
cdc2d62842
commit
72867c6acb
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user