Skip to content

Commit

Permalink
docs(zh): Fix extra space in outside-component-usage.md (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonren0403 committed Mar 4, 2024
1 parent 86c25ed commit 2a30fbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/docs/zh/core-concepts/outside-component-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ app.use(pinia)
const userStore = useUserStore()
```

为确保 pinia 实例被激活,最简单的方法就是将 `useStore()` 的调用放在 pinia 安
装后才会执行的函数中。
为确保 pinia 实例被激活,最简单的方法就是将 `useStore()` 的调用放在 pinia 安装后才会执行的函数中。

让我们来看看这个在 Vue Router 的导航守卫中使用 store 的例子。

Expand Down

0 comments on commit 2a30fbc

Please sign in to comment.