Skip to content

Commit 9e1a06e

Browse files
authored
Merge pull request #69 from Xi-Yuer/fix-issue-66
fix(issue #66): 修复 onError 方法 message 拼写错误
2 parents 1b1670c + 7b4f220 commit 9e1a06e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

i18n/zh-CN/docusaurus-plugin-content-docs/current/tutorial/02-getting-started/03-basic/05-global-interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const alovaInstance = createAlova({
9292
// 请求错误时将会进入该拦截器。
9393
// 第二个参数为当前请求的method实例,你可以用它同步请求前后的配置信息
9494
onError: (err, method) => {
95-
alert(error.message);
95+
alert(err.message);
9696
},
9797
// highlight-end
9898

i18n/zh-CN/docusaurus-plugin-content-docs/version-v2/tutorial/02-getting-started/05-global-interceptor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const alovaInstance = createAlova({
9292
// 请求错误时将会进入该拦截器。
9393
// 第二个参数为当前请求的method实例,你可以用它同步请求前后的配置信息
9494
onError: (err, method) => {
95-
alert(error.message);
95+
alert(err.message);
9696
},
9797
// highlight-end
9898

0 commit comments

Comments
 (0)