From 0aa58b5d74872d582e865167c50223c1abaa2f93 Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Tue, 7 Nov 2023 15:57:35 +0800 Subject: [PATCH] update --- src/pages/pnspsNotifyTest/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/pnspsNotifyTest/index.js b/src/pages/pnspsNotifyTest/index.js index a662239..dcd6c23 100644 --- a/src/pages/pnspsNotifyTest/index.js +++ b/src/pages/pnspsNotifyTest/index.js @@ -4,8 +4,8 @@ import axios from 'axios'; import { apiPath } from 'auth/utils'; const TestMailPage = () => { - const [host, setHost] = useState(apiPath+'/email/test'); - const [mail, setMail] = useState('register'); + const [host, setHost] = useState(apiPath+'/test'); + const [mail, setMail] = useState(''); const hostChange = (event) => { setHost(event.target.value); @@ -17,7 +17,7 @@ const TestMailPage = () => { const doMailTest = () => { axios.post(host, { - tempKey: mail + email: mail }) .then((response) => { console.log(response.data);