-
Notifications
You must be signed in to change notification settings - Fork 20
[Feature] Blog Category #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for pfccblog ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
哪个 LLM 写的?得调整成符合项目规范的写法 |
Claude + StackOverflow搜的,一师傅你帮我改下吧🥹 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写的很好 下次不要写了
</script> | ||
|
||
<template> | ||
<div class="antialiased dark:bg-neutral-900 min-h-screen"> | ||
<div class="max-w-3xl mx-auto px-4 sm:px-6 xl:max-w-5xl xl:px-0"> | ||
<nav class="flex justify-between items-center py-10 font-bold"> | ||
<a class="text-xl" href="/" :aria-label="site.title"> | ||
<!-- 修改首页链接,添加 @click 事件处理器 --> | ||
<a class="text-xl" href="/" @click="resetCategory" :aria-label="site.title"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有什么用吗?删掉也没什么影响
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有什么用吗?删掉也没什么影响
那删了
src/.vitepress/theme/Pagination.vue
Outdated
const basePath = pageNum === 1 ? '/' : `/pages/${pageNum}` | ||
|
||
// 如果在服务器端渲染,无法获取查询参数,直接返回基础链接 | ||
if (typeof window === 'undefined') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那这段逻辑的意义是什么呢?给自己开发时候看的?上线之后还是没有效果
所有 if (typeof window === 'undefined') {
都有这个问题,写了和没写一样
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那这段逻辑的意义是什么呢?给自己开发时候看的?上线之后还是没有效果
所有
if (typeof window === 'undefined') {
都有这个问题,写了和没写一样
解决 node.js build 报错的
再次申明,博客由 @SigureMo 共同维护 |
放弃维护,后续维护由 @sunzhongkai588 一力承担 |
だめ |
在 #118 博客分类功能的基础上
all
时,url不加参数)if (typeof window !== 'undefined')
使得构建成功