diff --git a/zh-cn/application-dev/reference/apis/js-apis-huks.md b/zh-cn/application-dev/reference/apis/js-apis-huks.md index 8687c56b735ee45798b900198ce83e8f21c71244..98c139b3db95cb289e89b37537d8d566ac479363 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-huks.md +++ b/zh-cn/application-dev/reference/apis/js-apis-huks.md @@ -983,7 +983,7 @@ async function attestKey() { let options = { properties: properties }; - generateKey(aliasString); + await generateKey(aliasString); huks.attestKey(aliasString, options) .then((data) => { console.log(`test attestKey data: ${JSON.stringify(data)}`);