From: lqzhgood <9134671+lqzhgood@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:10:35 +0000 (+0800) Subject: docs(zh): migration-vuex.md typo (#2391) X-Git-Tag: @pinia/nuxt@0.5.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef9db11f1cdc27f0d8c1994d2fcb0a8a7f83cb6e;p=thirdparty%2Fvuejs%2Fpinia.git docs(zh): migration-vuex.md typo (#2391) --- diff --git a/packages/docs/zh/cookbook/migration-vuex.md b/packages/docs/zh/cookbook/migration-vuex.md index c2995611..ce2ba065 100644 --- a/packages/docs/zh/cookbook/migration-vuex.md +++ b/packages/docs/zh/cookbook/migration-vuex.md @@ -259,7 +259,7 @@ router.beforeEach((to, from, next) => { import { useAuthUserStore } from '@/stores/auth-user' router.beforeEach((to, from, next) => { - // 必须再函数内部使用 + // 必须在函数内部使用 const authUserStore = useAuthUserStore() if (authUserStore.loggedIn) next() else next('/login')