1
0
mirror of https://github.com/sendevia/website.git synced 2026-03-06 07:40:50 +08:00

fix: typo

This commit is contained in:
2025-10-09 20:33:36 +08:00
parent 6b602affed
commit c18b53e22e
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { useAllPosts } from "../composables/useAllPosts";
const posts = useAllPosts();
</script>

View File

@@ -1,6 +1,5 @@
<script setup lang="ts">
import Header from "../components/Header.vue";
import { onMounted } from "vue";
function copyAnchorLink(this: HTMLElement) {
@@ -12,7 +11,7 @@ function copyAnchorLink(this: HTMLElement) {
const hiddenSpan = anchor.querySelector<HTMLSpanElement>("span.visually-hidden");
if (hiddenSpan) {
const originalText = hiddenSpan.textContent;
hiddenSpan.textContent = "已复制";
hiddenSpan.textContent = "已复制";
setTimeout(() => {
hiddenSpan.textContent = originalText;
}, 1000);