Skip to content

Commit 77c4fc5

Browse files
committed
docs: update docs
1 parent 4c64c4c commit 77c4fc5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/content/guide/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@ If you have questions or need help, reach out to the community at [GitHub Discus
3232
<ClientOnly>
3333
<TextReplacer
3434
container=".replaceable-area"
35-
pattern="@alpha"
36-
:replacement="latestRelease"
35+
pattern="@alpha"
36+
prefix="@"
37+
:replacement="latestReleaseVersion"
3738
></TextReplacer>
3839
</ClientOnly>
3940
4041
<script setup>
4142
import { onMounted, ref } from 'vue'
4243
import TextReplacer from '../../components/TextReplacer.vue'
43-
import { getLatestRelease } from '../../utils/github-api.ts'
44+
import { getLatestReleaseVersion } from '../../utils/github-api.ts'
4445

45-
const latestRelease = ref('')
46+
const latestReleaseVersion = ref('')
4647
onMounted(async () => {
47-
latestRelease.value = await getLatestRelease('vueup', 'vue-quill').then(data => data)
48+
latestReleaseVersion.value = await getLatestReleaseVersion('vueup', 'vue-quill').then(data => data)
4849
})
4950
</script>

0 commit comments

Comments
 (0)