更新
This commit is contained in:
parent
63f5226c01
commit
886e9f356d
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user