fix: fix fetch request uri pathname issue fixed
This commit is contained in:
parent
8bc85b251c
commit
1a02ad4084
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue