From 8f814c81fd06da69b297e495661b0b0f3c8d2918 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 3 Mar 2021 14:23:26 +0800 Subject: [PATCH] . --- src/pages/exam/do/index.vue | 8 ++++---- src/pages/practice/do/index.vue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 = ''