@@ -14,7 +14,7 @@
<el-upload
drag
action="/api/admin/sys/client/package/upload"
- accept=".zip"
+ :accept="accept"
:show-file-list="false"
:on-error="handleError"
:on-success="handleSuccess"
@@ -119,6 +119,9 @@ export default {
? `${this.info.prefix}/${this.info.upgrade.index}`
: "";
},
+ accept() {
+ return this.fileType === "INSTALL" ? ".exx" : ".zip";
+ },
mounted() {
this.getInfo();