Skip to content

Commit

Permalink
docs: update link to Nuxt website (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo authored Sep 6, 2023
1 parent ef9db11 commit 74fde1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docs/core-concepts/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ There is also a `StoreGetters` type to extract the _getters_ from a Store type.

## Nuxt.js

When [using pinia alongside Nuxt](../ssr/nuxt.md), you will have to create a [Nuxt plugin](https://nuxtjs.org/docs/2.x/directory-structure/plugins) first. This will give you access to the `pinia` instance:
When [using pinia alongside Nuxt](../ssr/nuxt.md), you will have to create a [Nuxt plugin](https://nuxt.com/docs/guide/directory-structure/plugins) first. This will give you access to the `pinia` instance:

```ts
// plugins/myPiniaPlugin.ts
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/core-concepts/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ declare module 'pinia' {

## Nuxt.js %{#nuxt-js}%

[在 Nuxt 中使用 pinia](../ssr/nuxt.md) 时,你必须先创建一个 [Nuxt 插件](https://nuxtjs.org/docs/2.x/directory-structure/plugins)。这样你才能访问到 `pinia` 实例:
[在 Nuxt 中使用 pinia](../ssr/nuxt.md) 时,你必须先创建一个 [Nuxt 插件](https://nuxt.com/docs/guide/directory-structure/plugins)。这样你才能访问到 `pinia` 实例:

```ts
// plugins/myPiniaPlugin.js
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/zh/ssr/nuxt.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nuxt.js %{#nuxt-js}%

搭配 [Nuxt.js](https://nuxtjs.org/) 的 Pinia 更易用,因为 Nuxt 处理了很多与**服务器端渲染**有关的事情。例如,**你不需要关心序列化或 XSS 攻击**。Pinia 既支持 Nuxt Bridge 和 Nuxt 3,也支持纯 Nuxt 2,[见下文](#nuxt-2-without-bridge)
搭配 [Nuxt](https://nuxt.com/) 的 Pinia 更易用,因为 Nuxt 处理了很多与**服务器端渲染**有关的事情。例如,**你不需要关心序列化或 XSS 攻击**。Pinia 既支持 Nuxt Bridge 和 Nuxt 3,也支持纯 Nuxt 2,[见下文](#nuxt-2-without-bridge)

## 安装 %{#installation}%

Expand Down

0 comments on commit 74fde1d

Please sign in to comment.