]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs(zh): sync update to e008551 1726/head
authorJinjiang <zhaojinjiang@me.com>
Thu, 16 Feb 2023 05:38:36 +0000 (13:38 +0800)
committerJinjiang <zhaojinjiang@me.com>
Thu, 16 Feb 2023 05:38:36 +0000 (13:38 +0800)
packages/docs/zh/guide/advanced/composition-api.md
packages/docs/zh/guide/advanced/extending-router-link.md
packages/docs/zh/guide/advanced/lazy-loading.md
packages/docs/zh/index.md

index bfe18c06a383e210b4ff65a529a827d5a9435e43..306268aff6be558d506463f6cfe7f88afc898565 100644 (file)
@@ -9,7 +9,7 @@
 
 ## 在 `setup` 中访问路由和当前路由
 
-因为我们在 `setup` 里面没有访问 `this`,所以我们不能再直接访问 `this.$router` 或 `this.$route`。作为替代,我们使用 `useRouter` 函数:
\9b ä¸ºæ\88\91们å\9c¨ `setup` é\87\8cé\9d¢æ²¡æ\9c\89访é\97® `this`ï¼\8cæ\89\80以æ\88\91们ä¸\8dè\83½å\86\8dç\9b´æ\8e¥è®¿é\97® `this.$router` æ\88\96 `this.$route`ã\80\82ä½\9c为æ\9b¿ä»£ï¼\8cæ\88\91们使ç\94¨ `useRouter` å\92\8c `useRoute` å\87½æ\95°ï¼\9a
 
 ```js
 import { useRouter, useRoute } from 'vue-router'
index b78507bf02c86b713e901986dfc0307a1f2f2033..5723024475808bf966a8ce2f8cdd87ba1687818e 100644 (file)
@@ -84,7 +84,7 @@ export default {
 <template>
   <AppLink
     v-bind="$attrs"
-    class="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 focus:outline-none transition duration-150 ease-in-out hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"
+    class="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"
     active-class="border-indigo-500 text-gray-900 focus:border-indigo-700"
     inactive-class="text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:text-gray-700 focus:border-gray-300"
   >
index 40c1790eff4f0499fa6e553932f0bd076c950e8d..abb4d6aa570b067f1bfd62dd63776f14b35cd0ce 100644 (file)
@@ -75,6 +75,7 @@ export default defineConfig({
             './src/UserProfileEdit',
           ],
         },
+      },
     },
   },
 })
index 1a20e81b14f47b42451395e51dc5b870d62358b5..22d98057ebd922fd9cd88e9d798ecac3983e9de9 100644 (file)
@@ -9,7 +9,7 @@ hero:
   text: Vue.js 的官方路由
   tagline: Expressive, configurable and convenient routing for Vue.js
   image:
-    src: /logo.png
+    src: /logo.svg
     alt: Vue Router
   actions:
     - theme: brand