diff --git a/docs/tutorial/migration-to-vue3.md b/docs/tutorial/migration-to-vue3.md index 68a4deef853ae23da430fefa3475eab487d0ee4d..5d6a48aaf491787d3b644e98d4ce4febb8ba7ad8 100644 --- a/docs/tutorial/migration-to-vue3.md +++ b/docs/tutorial/migration-to-vue3.md @@ -503,8 +503,9 @@ vue3 全平台新增:通过 props 来获取页面参数的使用方式 示例: ```js -export default { - hello: ({ list }) => `${list(0)} world`, - test: '你好' -} +const messages = { + en: { + greeting: ({ named }) => `hello, ${named('name')}!` + } +} ```