1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user