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