Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

v3文档有误 #106

Closed
lqh-1997 opened this issue Sep 22, 2020 · 2 comments
Closed

v3文档有误 #106

lqh-1997 opened this issue Sep 22, 2020 · 2 comments
Labels

Comments

@lqh-1997
Copy link

https://github.com/vuejs/docs-next-zh-cn/blob/master/src/guide/migration/global-api.md#提供注入-provide--inject
在provide/inject处

app.provide({
  guide: 'Vue 3 Guide'
})

应为

app.provide('guide', 'Vue 3 Guide')

https://github.com/vuejs/docs-next/blob/master/src/guide/migration/global-api.md#provide--inject

@lqh-1997
Copy link
Author

还有同一个地方的

export default {
  inject: {
    book: {
      from: guide
    }
  },
  template: `<div>{{ book }}</div>`
}

guide 应为 'guide'

@veaba
Copy link
Member

veaba commented Sep 22, 2020

#107 已修复该问题,现将 close 该 issue,感谢 @lqh-1997 的反馈。

@veaba veaba closed this as completed Sep 22, 2020
@veaba veaba added the 校对 label Sep 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants