问吧内联评论组件用 v-show 常驻挂载,commentId 只在组件创建时决定 searchParams 走 pid 分支还是 articleId 分支。某个问题/回答一开始没有评论时 commentId 是 undefined,组件锁死用 articleId 分支初始化;之后哪怕父组件传入了真实的 commentId,组件不会重新 mount,再次搜索时依然带着 articleId 请求 getQuestionComment,后端提示"参数缺失"。现在改成在真正发起搜索前校正一次 searchParams,commentId 一旦有值就切到 pid 分支。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .agents/skills | Loading commit data... | |
| .claude/skills | Loading commit data... | |
| .cursor/rules | Loading commit data... | |
| .vscode | Loading commit data... | |
| deploy | Loading commit data... | |
| public/downloads | Loading commit data... | |
| skills | Loading commit data... | |
| src | Loading commit data... | |
| .editorconfig | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .oxfmtrc.json | Loading commit data... | |
| .oxlintrc.json | Loading commit data... | |
| README.md | Loading commit data... | |
| env.d.ts | Loading commit data... | |
| eslint.config.oxlint.mjs | Loading commit data... | |
| eslint.config.ts | Loading commit data... | |
| index.html | Loading commit data... | |
| package.json | Loading commit data... | |
| pnpm-lock.yaml | Loading commit data... | |
| skills-lock.json | Loading commit data... | |
| tsconfig.app.json | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| tsconfig.node.json | Loading commit data... | |
| uno.config.ts | Loading commit data... | |
| vite.config.ts | Loading commit data... |