1
This commit is contained in:
@@ -30,6 +30,8 @@ export function requestRpgRuntimeJson<T>(
|
||||
options: RuntimeRequestOptions = {},
|
||||
) {
|
||||
const method = (init.method ?? 'GET').toUpperCase();
|
||||
// 中文注释:运行时读请求和写请求的重试策略分开配置;
|
||||
// GET 更保守,写请求允许 unsafe method retry,用来兜底瞬时网络抖动。
|
||||
const retry =
|
||||
options.retry ??
|
||||
(method === 'GET' ? RUNTIME_READ_RETRY : RUNTIME_WRITE_RETRY);
|
||||
|
||||
Reference in New Issue
Block a user