Skip to content

Commit e2d222b

Browse files
authored
docs: [Doc]: Update /zh-CN/ (#1067)
* Update api.md * Update patches.mdx
1 parent 4da2e0d commit e2d222b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

website/i18n/zh-CN/docusaurus-plugin-content-docs/current/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ title: API 概览
3131
| `produce` | Immer 的核心 API,也暴露为 `default` 导出 | [Produce](./produce.mdx) |
3232
| `produceWithPatches` |`produce` 相同,但它不仅返回生成的对象,还返回一个由 `[result, patch, inversePatches]` 组成的元组 | [Patches](./patches.mdx) |
3333
| `setAutoFreeze` | 启用/禁用递归的自动冻结。默认启用 | [Freezing](./freezing.mdx) |
34-
| `setUseStrictShallowCopy` | Can be used to enable strict shallow copy. If enable, immer copies non-enumerable properties as much as possible. | [Classes](./complex-objects.md) |
34+
| `setUseStrictShallowCopy` | 可用于启用严格的浅拷贝。 如果启用,immer 会尽可能多地拷贝不可枚举属性 | [Classes](./complex-objects.md) |
3535

3636
## 导入 immer
3737

website/i18n/zh-CN/docusaurus-plugin-content-docs/current/patches.mdx

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ let state = {
7676
// 假设用户在向导中
7777
// 他的更改 应该以最终是否为基本状态结束...
7878

79-
his changes should end up in the base state ultimately or not...
8079
let fork = state
8180
// 用户在向导中所作的所有更改
8281
let changes = []

0 commit comments

Comments
 (0)