- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
595 B
JavaScript
15 lines
595 B
JavaScript
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
import { ruleSet } from "./ruleset";
|
|
const cache = new EndpointCache({
|
|
size: 50,
|
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
});
|
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
endpointParams: endpointParams,
|
|
logger: context.logger,
|
|
}));
|
|
};
|
|
customEndpointFunctions.aws = awsEndpointFunctions;
|