From 625928e34b588e4e3f0bd80f496a524c2d01ce29 Mon Sep 17 00:00:00 2001 From: acidumirae Date: Sun, 9 Jul 2023 09:31:45 +0800 Subject: [PATCH] Message fix --- src/components/AuthPages/AuthRedirect/Redirect.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AuthPages/AuthRedirect/Redirect.jsx b/src/components/AuthPages/AuthRedirect/Redirect.jsx index 6908167..4f45717 100644 --- a/src/components/AuthPages/AuthRedirect/Redirect.jsx +++ b/src/components/AuthPages/AuthRedirect/Redirect.jsx @@ -40,8 +40,7 @@ function Redirect() { return; } // "{"message":"Endpoint not found.","URI":"http:\/\/localhost:9083\/index.php\/en\/wrench\/api\/v1\/authstart"}[]" - const data = JSON.parse(res.data.replace('[]','')); - alert(data.message); + alert(JSON.stringify(res.data)); }) .catch((error) => { console.log(error);