This commit is contained in:
2025-09-30 17:16:11 +08:00
parent e650a7c7f3
commit 52ce0e1969
25 changed files with 689 additions and 989 deletions

View File

@@ -6,7 +6,6 @@
<el-button type="success" icon="el-icon-upload" size="mini" @click="handleUpload" v-hasPermi="['system:version:upload']">上传新版本</el-button>
</el-form-item>
</el-form>
<!-- 版本信息卡片 -->
<el-row class="mb8">
<el-col s>
@@ -44,14 +43,14 @@
ref="upload"
action="#"
:limit="1"
accept=".exe"
accept=".asar"
:on-exceed="handleExceed"
:file-list="fileList"
:auto-upload="false"
:on-change="handleFileChange"
:on-remove="handleFileRemove">
<el-button slot="trigger" size="small" type="primary">选择文件</el-button>
<div slot="tip" class="el-upload__tip">只能上传exe文件且不超过800MB</div>
<div slot="tip" class="el-upload__tip">只能上传asar文件且不超过800MB</div>
</el-upload>
</el-form-item>
</el-form>
@@ -169,8 +168,8 @@ export default {
return;
}
if (!this.uploadForm.file.name.endsWith('.exe')) {
this.$modal.msgError("只支持上传.exe文件");
if (!this.uploadForm.file.name.endsWith('.asar')) {
this.$modal.msgError("只支持上传.asar文件");
return;
}