Skip to content

Commit 8f59040

Browse files
committed
docs(cn): fix all conflicts
1 parent 51d6332 commit 8f59040

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

guide/api-hmr.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,9 @@ if (import.meta.hot) {
9393
import.meta.hot.accept(
9494
['./foo.js', './bar.js'],
9595
([newFooModule, newBarModule]) => {
96-
<<<<<<< HEAD
97-
// 只有当更新模块非空时,回调函数接收一个数组
96+
// 只有当所更新的模块非空时,回调函数接收一个数组
9897
// 如果更新不成功(例如语法错误),则该数组为空
9998
}
100-
=======
101-
// The callback receives an array where only the updated module is non null
102-
// If the update was not successful (syntax error for ex.), the array is empty
103-
},
104-
>>>>>>> b487b176946a6940b8f77176b07b19eed975456c
10599
)
106100
}
107101
```

guide/troubleshooting.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,25 @@
5151

5252
请注意,这些配置会持久作用,但需要 **重新启动**
5353

54-
<<<<<<< HEAD
55-
### 431 Request Header Fields Too Large {#431-request-header-fields-too-large}
56-
=======
57-
### Network requests stop loading
54+
### 网络请求停止加载 {#network-requests-stop-loading}
5855

59-
When using a self-signed SSL certificate, Chrome ignores all caching directives and reloads the content. Vite relies on these caching directives.
56+
使用自签名SSL证书时,Chrome 会忽略所有缓存指令并重新加载内容。而 Vite 依赖于这些缓存指令。
6057

61-
To resolve the problem use a trusted SSL cert.
58+
要解决此问题,请使用受信任的SSL证书。
6259

63-
See: [Cache problems](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html), [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8)
60+
请查看:[缓存问题](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html) 和相关的 [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8)
6461

6562
#### macOS
6663

67-
You can install a trusted cert via the CLI with this command:
64+
您可以使用以下命令通过 CLI 安装受信任的证书:
6865

6966
```
7067
security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db your-cert.cer
7168
```
7269

73-
Or, by importing it into the Keychain Access app and updating the trust of your cert to "Always Trust."
70+
或者,通过将其导入 Keychain Access 应用程序并将您的证书的信任更新为“始终信任”。
7471

75-
### 431 Request Header Fields Too Large
76-
>>>>>>> b487b176946a6940b8f77176b07b19eed975456c
72+
### 431 Request Header Fields Too Large {#431-request-header-fields-too-large}
7773

7874
当服务器或 WebSocket 服务收到一个较大的 HTTP 头,该请求可能会被遗落并且会显示下面这样的警告。
7975

@@ -105,15 +101,11 @@ import './Foo.js' // 应该为 './foo.js'
105101

106102
同时如果有依赖环,也会发生完全重载。要解决这个问题,请先尝试解决依赖循环。
107103

108-
<<<<<<< HEAD
109-
## 构建 {#build}
110-
=======
111-
### High number of HMR updates in console
104+
### 控制台中大量热更新 {#high-number-of-hmr-updates-in-console}
112105

113106
This can be caused by a circular dependency. To solve this, try breaking the loop.
114107

115-
## Build
116-
>>>>>>> b487b176946a6940b8f77176b07b19eed975456c
108+
## 构建 {#build}
117109

118110
### 构建产物因为 CORS 错误无法工作 {#built-file-does-not-work-because-of-cors-error}
119111

0 commit comments

Comments
 (0)