From eaa2795a7d6021bca85c95045ff6207f0170a598 Mon Sep 17 00:00:00 2001 From: KingYen <1696918097@qq.com> Date: Sun, 15 Oct 2023 23:24:36 +0800 Subject: [PATCH] Add the api url. --- src/components/submitLogin.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/submitLogin.jsx b/src/components/submitLogin.jsx index 532e8fd..a0d4b30 100644 --- a/src/components/submitLogin.jsx +++ b/src/components/submitLogin.jsx @@ -55,7 +55,7 @@ const SubmitLogin = () => { // TODO: jump to a new page // To creat a new POST request to get the login by the axios. axios - .post("/user/login", { + .post("/api/user/login", { phone_number: values.phoneNumber, calibration_code: values.calibrationCode, }) @@ -80,7 +80,7 @@ const SubmitLogin = () => { } else { // To creat a new POST request to get the Calibration Code by the axios. axios - .post("http://127.0.0.1:5500/user/getCode", { + .post("http://127.0.0.1:5500/api/user/getCode", { phone_number: values.phoneNumber, }) .then(function (response) { -- Gitee