将oss文件上传返回的http链接改为https链接

This commit is contained in:
2024-09-06 13:59:00 +08:00
parent e6d421dfb1
commit a81c8b8352
3 changed files with 14 additions and 3 deletions

View File

@@ -99,6 +99,12 @@ export default {
this.dialogVisible = true;
},
onExceed(files ) {
const file=files[0];
const isExe = file.name.endsWith(".exe");
if (!isExe) {
this.$message.error("只允许上传.exe文件");
return false; // 阻止上传
}
console.log(files);
if(this.limit == 1&&this.fileList.length>0){
this.fileList.splice(0,1)

View File

@@ -72,7 +72,7 @@
<el-table-column label="下载地址" prop="url">
<template v-slot="scope">
<a class="a" :href="scope.row.url" target="_blank">{{ scope.row.url }}</a>
<a class="a" :href="scope.row.url" >{{ scope.row.url }}</a>
</template>
</el-table-column>