lsc 2 gadi atpakaļ
vecāks
revīzija
de47e809b4

+ 2 - 0
src/components/pages/addCourse.vue

@@ -4153,6 +4153,7 @@ export default {
         ) {
           if (file.size / 1024 / 1024 > 10) {
             this.$message.error("上传文件大于10兆,请重新选择文件!");
+            this.inputShow = true;
             var a = _this.$refs.upload1.uploadFiles;
             a.splice(a.length - 1, a.length);
             // loading.close();
@@ -4165,6 +4166,7 @@ export default {
         ) {
           if (file.size / 1024 / 1024 > 5) {
             this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
+            this.inputShow = true;
             var a = _this.$refs.upload1.uploadFiles;
             a.splice(a.length - 1, a.length);
             // loading.close();

+ 2 - 0
src/components/pages/addCourseGM.vue

@@ -4117,6 +4117,7 @@ export default {
         ) {
           if (file.size / 1024 / 1024 > 10) {
             this.$message.error("上传文件大于10兆,请重新选择文件!");
+            this.inputShow = true;
             var a = _this.$refs.upload1.uploadFiles;
             a.splice(a.length - 1, a.length);
             // loading.close();
@@ -4129,6 +4130,7 @@ export default {
         ) {
           if (file.size / 1024 / 1024 > 5) {
             this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
+            this.inputShow = true;
             var a = _this.$refs.upload1.uploadFiles;
             a.splice(a.length - 1, a.length);
             // loading.close();