mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 15:51:04 +03:30
Product
This commit is contained in:
@@ -195,7 +195,12 @@ export default {
|
||||
}
|
||||
},
|
||||
async submitForm() {
|
||||
const result = await ApiService.post(urls.storeTestResult, this.formData);
|
||||
if (this.$route.params.testResult) {
|
||||
const result = await ApiService.put(urls.updateTestResult(this.$route.params.testResult), this.formData);
|
||||
} else {
|
||||
const result = await ApiService.post(urls.storeTestResult, this.formData);
|
||||
}
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.$router.push({name: 'Dashboard'})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user