過去のランキングページがランキングページと同じ表示になるのを修正 - #232
Merged
Merged
Conversation
APIは正しく返っているのに画面に出ない、という状況では、配信されている バンドルにその画面のコードが載っていない可能性がある。probe_url が返した HTMLから読み込まれるJSを辿って、指定した文字列を含むか確かめられるようにする。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DwkB6Hj2JggoKcy7FoxNcU
pages/ranking.vue と pages/ranking/history.vue が共存していたため、Nuxt が ranking.vue を親ルート、history.vue を子ルートとして構成していた。親に nuxt-child が無いので、/ranking/history を開いてもランキングページだけが 描画され、履歴ページのコードは一度も動いていなかった。 そのため rankingArchiveGo にはリクエストが1件も届かず、締めもAPIも正常なのに 「過去のランキングが出ない」状態になっていた。 ranking.vue を ranking/index.vue に移して兄弟ルートにする。生成されるルート 定義が /ranking と /ranking/history の2つになることを確認済み。 なお yarn generate は dist/ranking/history/index.html を作るが、SPAでは全ルートが 同じシェルHTMLになるため、ファイルの存在だけでは検証にならない。ルート定義まで 見る必要があった。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DwkB6Hj2JggoKcy7FoxNcU
Contributor
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
kojira
pushed a commit
that referenced
this pull request
Aug 2, 2026
kojira
pushed a commit
that referenced
this pull request
Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/ranking/historyを開いても/rankingと全く同じ画面が出ていた。原因
pages/ranking.vueとpages/ranking/history.vueが共存していたため、Nuxt はranking.vueを親ルート、history.vueを子ルートとして構成する。子を描画するには親に<nuxt-child />が必要だが、無かった。結果、
/ranking/historyでもランキングページだけが描画され、履歴ページのコードは一度も実行されていなかった。これが「締めもアーカイブ保存も API も正常なのに履歴が出ない」の正体で、
rankingArchiveGoにリクエストが1件も届いていなかったことの説明もつく。修正
ranking.vueをranking/index.vueに移して兄弟ルートにする。確認したこと
ビルド後のルート定義が2つに分かれること:
反省
前回はこの機能を出すとき、
yarn generateがdist/ranking/history/index.htmlを作ったことだけを見て「ページ生成OK」としていた。SPA(ssr: false)では全ルートが同じシェルHTMLになるため、ファイルの存在は何の証明にもならない。ルート定義まで確認する必要があった。🤖 Generated with Claude Code
https://claude.ai/code/session_01DwkB6Hj2JggoKcy7FoxNcU
Generated by Claude Code