mirror of
https://github.com/sendevia/website.git
synced 2026-03-06 07:40:50 +08:00
fix: typo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useAllPosts } from "../composables/useAllPosts";
|
||||
|
||||
const posts = useAllPosts();
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user