|
@@ -43,7 +43,7 @@
|
|
|
<!-- status="success">-->
|
|
<!-- status="success">-->
|
|
|
<!-- </el-progress>-->
|
|
<!-- </el-progress>-->
|
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
|
- <div slot="tip" class="el-upload__tip">只能上传mp4文件,且不超过800M</div>
|
|
|
|
|
|
|
+ <div slot="tip" class="el-upload__tip">只能上传mp4文件,且不超过1G</div>
|
|
|
<!-- </el-upload>-->
|
|
<!-- </el-upload>-->
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -271,7 +271,7 @@ export default {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
handleChange(file, fileList) {
|
|
handleChange(file, fileList) {
|
|
|
- const MAX_SIZE = 800 * 1024 * 1024;
|
|
|
|
|
|
|
+ const MAX_SIZE = 1024 * 1024 * 1024;
|
|
|
if (file.raw && file.raw.size > MAX_SIZE) {
|
|
if (file.raw && file.raw.size > MAX_SIZE) {
|
|
|
this.$message.error("文件大小不能超过800M");
|
|
this.$message.error("文件大小不能超过800M");
|
|
|
this.$refs.upload?.clearFiles();
|
|
this.$refs.upload?.clearFiles();
|
|
@@ -299,7 +299,7 @@ export default {
|
|
|
if (this.fileList.length < 1) {
|
|
if (this.fileList.length < 1) {
|
|
|
return this.$message.error("请先选取视频,再进行上传");
|
|
return this.$message.error("请先选取视频,再进行上传");
|
|
|
}
|
|
}
|
|
|
- const MAX_SIZE = 800 * 1024 * 1024;
|
|
|
|
|
|
|
+ const MAX_SIZE = 1024 * 1024 * 1024;
|
|
|
if (this.fileList[0].raw && this.fileList[0].raw.size > MAX_SIZE) {
|
|
if (this.fileList[0].raw && this.fileList[0].raw.size > MAX_SIZE) {
|
|
|
return this.$message.error("文件大小不能超过800M");
|
|
return this.$message.error("文件大小不能超过800M");
|
|
|
}
|
|
}
|
|
@@ -327,7 +327,7 @@ export default {
|
|
|
async uploadVideoToTxPcdn() {
|
|
async uploadVideoToTxPcdn() {
|
|
|
try {
|
|
try {
|
|
|
const file = this.fileList[0].raw;
|
|
const file = this.fileList[0].raw;
|
|
|
- const MAX_SIZE = 800 * 1024 * 1024;
|
|
|
|
|
|
|
+ const MAX_SIZE = 1024 * 1024 * 1024;
|
|
|
if (file && file.size > MAX_SIZE) {
|
|
if (file && file.size > MAX_SIZE) {
|
|
|
this.$message.error("文件大小不能超过800M");
|
|
this.$message.error("文件大小不能超过800M");
|
|
|
return;
|
|
return;
|