diff --git a/components/card/ArticleCard.vue b/components/card/ArticleCard.vue index 2ea45b4..182b8a2 100644 --- a/components/card/ArticleCard.vue +++ b/components/card/ArticleCard.vue @@ -8,7 +8,7 @@ const props = defineProps<{ const thumbUrl = computed(() => { // 如果文章缩略图为空,则从本地随机获取默认缩略图 props.post.fields.thumb.value = props.post.fields.thumb.value ? props.post.fields.thumb.value : getAssetURL( - `/common/${Math.floor(Math.random() * (7 - 1 + 1)) + 1}.jpg` + `common/${Math.floor(Math.random() * (7 - 1 + 1)) + 1}.jpg` ) return props.post.fields.thumb.value }) diff --git a/components/card/FullScreenIntroCard.vue b/components/card/FullScreenIntroCard.vue index 9b16445..ce58cb9 100644 --- a/components/card/FullScreenIntroCard.vue +++ b/components/card/FullScreenIntroCard.vue @@ -4,6 +4,7 @@ import {computed, ref} from "vue"; // 使用 ref 跟踪鼠标的 x 和 y 坐标 const mouseX = ref(0) const mouseY = ref(0) +const characterUrl = ref("") const typedString = ['Hello, Welcome to this site!^1000', '欢迎访问本网站!^1000'] const littleWidget = [ @@ -29,8 +30,6 @@ const littleWidget = [ } ] -// const characterUrl = "~/assets/images/common/hoshino.png" - // 监听鼠标移动 const handleMouseMove = (event: MouseEvent) => { // 根据窗口大小计算鼠标相对于中心位置的偏移比例 @@ -44,6 +43,10 @@ const debouncedMouseMove = debounce(handleMouseMove, 5) const backgroundStyle = computed(() => ({ backgroundPosition: `${mouseX.value}px ${mouseY.value}px` })) + +onMounted(() => { + characterUrl.value = getAssetURL('common/hoshino.png') +}) \ No newline at end of file diff --git a/pages/diary.vue b/pages/diary.vue new file mode 100644 index 0000000..e44371f --- /dev/null +++ b/pages/diary.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/pages/error/maintenance.vue b/pages/error/maintenance.vue new file mode 100644 index 0000000..bb01b33 --- /dev/null +++ b/pages/error/maintenance.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/pages/soft.vue b/pages/soft.vue new file mode 100644 index 0000000..e44371f --- /dev/null +++ b/pages/soft.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/pages/talk.vue b/pages/talk.vue new file mode 100644 index 0000000..e44371f --- /dev/null +++ b/pages/talk.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file