Merge branch 'contact-endpoint-bug' of MERMS/MermsWebsite2025 into master

This commit is contained in:
2026-05-26 20:31:23 +00:00
committed by Gogs
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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: () => {