fix: fix fetch request uri pathname issue fixed

This commit is contained in:
WH64 2025-03-17 16:01:36 +09:00
parent 8bc85b251c
commit 1a02ad4084

View file

@ -84,7 +84,7 @@ function Readme() {
useEffect(() => {
async function refresh() {
const pathname = location.pathname;
const res = await fetch(`/api/raw/${pathname}${pathname.endsWith("/") ? "" : "/"}README.md`, {
const res = await fetch(`/api/raw${pathname}${pathname.endsWith("/") ? "" : "/"}README.md`, {
cache: "no-cache"
});