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 67156f4a7a
commit 3a9b532248
8 changed files with 11 additions and 11 deletions

View file

@ -23,8 +23,8 @@ export default function Conversation({
const { modelMap } = useSelector((state) => state.models);
const inputRef = useRef(null);
const dispatch = useDispatch();
const { trigger } = manualSWR(`http://localhost:3080/api/messages/${id}`, 'get');
const rename = manualSWR(`http://localhost:3080/api/convos/update`, 'post');
const { trigger } = manualSWR(`/api/messages/${id}`, 'get');
const rename = manualSWR(`/api/convos/update`, 'post');
const clickHandler = async () => {
if (conversationId === id) {