diff --git a/src/pages/exam/do/index.vue b/src/pages/exam/do/index.vue index 7ad4238..597980b 100644 --- a/src/pages/exam/do/index.vue +++ b/src/pages/exam/do/index.vue @@ -313,9 +313,6 @@ export default { },1000) }, save(){ - if(this.submiting) return false - this.submiting = true - let data1 = [] let subjects = this.subjects let uploading = false subjects.map((e,i) => { @@ -323,7 +320,10 @@ export default { if(n.uploading) uploading = true }) }) - if(uploading) return this.$message.warning('视频正在上传,请稍等') + if(uploading) return this.$message.warning('视频正在上传,请稍候再试') + if(this.submiting) return false + this.submiting = true + let data1 = [] subjects.map((e,i) => { e.map((n,k) => { let userAnswer = '' diff --git a/src/pages/practice/do/index.vue b/src/pages/practice/do/index.vue index 467faaa..ea96e20 100644 --- a/src/pages/practice/do/index.vue +++ b/src/pages/practice/do/index.vue @@ -271,9 +271,6 @@ export default { } }, save(){ - if(this.submiting) return false - this.submiting = true - let data1 = [] let subjects = this.subjects let uploading = false subjects.map((e,i) => { @@ -281,7 +278,10 @@ export default { if(n.uploading) uploading = true }) }) - if(uploading) return this.$message.warning('视频正在上传,请稍等') + if(uploading) return this.$message.warning('视频正在上传,请稍候再试') + if(this.submiting) return false + this.submiting = true + let data1 = [] subjects.map((e,i) => { e.map((n,k) => { let userAnswer = ''