This commit is contained in:
许允枞 2025-03-14 11:27:42 +08:00
parent 63f5226c01
commit 886e9f356d

View File

@ -68,7 +68,6 @@ export default {
methods: {
submitForm() {
this.$refs.formRef.validate().then(res => {
uni.showToast({title: 'Successfully', icon: 'success'});
request({
url: 'contact/sendEmail',
method: 'post',
@ -77,6 +76,8 @@ export default {
email: this.form.email,
message: this.form.message
}
}).then(() => {
uni.showToast({title: 'Successfully', icon: 'success'});
})
this.form = {name: '', email: '', message: ''};
}).catch(errors => {