lsc 2 년 전
부모
커밋
de47e809b4
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/components/pages/addCourse.vue
  2. 2 0
      src/components/pages/addCourseGM.vue

+ 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();