diff --git a/src/pages/blogPages/SingleBlog_page.vue b/src/pages/blogPages/SingleBlog_page.vue index e8e6f95..47c038d 100644 --- a/src/pages/blogPages/SingleBlog_page.vue +++ b/src/pages/blogPages/SingleBlog_page.vue @@ -11,7 +11,7 @@ import Blog_rootComment from "../../components/Blog_comment.vue"; import {getInfoWithPages} from "../../utils/getInfoWithPages.js"; import Blog_commentDisplay from "../../components/Blog_commentDisplay.vue"; import Profile_display from "../../components/Profile_display.vue"; -import {getCurrentISODateTime} from "../../utils/formatTime.js"; +import {formatGMTToLocal, getCurrentISODateTime} from "../../utils/formatTime.js"; // 获取路由参数 const route = useRoute() @@ -37,6 +37,7 @@ const commentInputFocus = ref(false); const commentButtonFocus = ref(false); const commentSubmitLoading = ref(false); + const checkWindowSize = () => { windowWidth.value = window.innerWidth; }; @@ -172,7 +173,7 @@ const submitComment = async () => {
{{ posterInfo?.username || '' }} - {{ blog.post_date }} + 最后更新: {{ formatGMTToLocal(blog.edit_date, 3) }}