Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e0230d577 | |||
| d641ea57bc | |||
| 5cde7e1f58 | |||
| 9e98293876 |
@@ -29,7 +29,7 @@ const siteServerPath = () => {
|
||||
return process.env.NEXT_PUBLIC_APP_MAIN_API;
|
||||
}
|
||||
|
||||
const postAuxEnd = (basePath, path, postData) => {
|
||||
const postAuxEnd = (basePath, path, postData, media=false) => {
|
||||
// const basePath = media ? process.env.NEXT_PUBLIC_APP_MAIN_API : process.env.NEXT_PUBLIC_APP_MAIN_API;
|
||||
let newPostData = {}
|
||||
if (!media) {
|
||||
|
||||
+3
-3
@@ -29,9 +29,9 @@ export default function Home() {
|
||||
return sendContactMsg(fields)
|
||||
},
|
||||
onSuccess: (res) => {
|
||||
if (res?.data?.resultCode != '0') {
|
||||
throw({message: res?.data?.resultDescription})
|
||||
}
|
||||
// if (res?.data?.resultCode != '0') {
|
||||
// throw({message: res?.data?.resultDescription})
|
||||
// }
|
||||
window.scrollTo(0, 0);
|
||||
},
|
||||
// onSettled: () => {
|
||||
|
||||
Reference in New Issue
Block a user