From abe34881d71632aaf39e756bb70567960c050860 Mon Sep 17 00:00:00 2001 From: zhaoyiming0803 Date: Mon, 10 Jul 2023 11:20:40 +0800 Subject: [PATCH] fix(doc): update demo links, and so on --- docs/guide/essentials/events.md | 12 +++--- docs/guide/essentials/mode.md | 72 ++++++++++++++++----------------- docs/guide/quick-start.md | 2 +- 3 files changed, 41 insertions(+), 45 deletions(-) diff --git a/docs/guide/essentials/events.md b/docs/guide/essentials/events.md index b3f57e39..c4d78346 100644 --- a/docs/guide/essentials/events.md +++ b/docs/guide/essentials/events.md @@ -8,11 +8,11 @@ ```tsx // React 16 / 17 -// 代码示例:https://github.com/Authing/Guard/blob/master/examples/guard-react/normal/src/pages/Embed.tsx +// 代码示例:https://github.com/Authing/Guard/tree/v5/examples/guard-react/normal/src/pages/Embed.tsx import { useGuard, User } from "@authing/guard-react"; // React 18 -// 代码示例:https://github.com/Authing/Guard/blob/master/examples/guard-react18/normal/src/pages/Embed.tsx +// 代码示例:https://github.com/Authing/Guard/tree/v5/examples/guard-react18/normal/src/pages/Embed.tsx // import { useGuard, User } from "@authing/guard-react18"; import React, { useEffect } from "react"; @@ -46,7 +46,7 @@ export default function Login() { ::: tab Vue2 ```javascript -// 代码示例:https://github.com/Authing/Guard/blob/master/examples/guard-vue2/normal/src/views/Embed.vue +// 代码示例:https://github.com/Authing/Guard/tree/v5/examples/guard-vue2/normal/src/views/Embed.vue export default { mounted() { // 使用 start 方法挂载 Guard 组件到你指定的 DOM 节点,登录成功后返回 userInfo @@ -69,7 +69,7 @@ export default { ```html