浏览代码

update

master
cyril.tsui 2 年前
父节点
当前提交
0aa58b5d74
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/pages/pnspsNotifyTest/index.js

+ 3
- 3
src/pages/pnspsNotifyTest/index.js 查看文件

@@ -4,8 +4,8 @@ import axios from 'axios';
import { apiPath } from 'auth/utils'; import { apiPath } from 'auth/utils';


const TestMailPage = () => { 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) => { const hostChange = (event) => {
setHost(event.target.value); setHost(event.target.value);
@@ -17,7 +17,7 @@ const TestMailPage = () => {


const doMailTest = () => { const doMailTest = () => {
axios.post(host, { axios.post(host, {
tempKey: mail
email: mail
}) })
.then((response) => { .then((response) => {
console.log(response.data); console.log(response.data);


正在加载...
取消
保存