fix: frontend api request shouldn't hard code the domain and port.

This commit is contained in:
Wentao Lyu 2023-03-10 21:06:13 +08:00
parent 06c99154ac
commit c5c865a25f
8 changed files with 11 additions and 11 deletions

View file

@ -17,7 +17,7 @@ export default function Nav() {
};
const { data, isLoading, mutate } = swr(
`http://localhost:3080/api/convos?pageNumber=${pageNumber}`,
`/api/convos?pageNumber=${pageNumber}`,
onSuccess
);
const containerRef = useRef(null);