优化打包交互

This commit is contained in:
aixianling
2022-05-27 15:19:16 +08:00
parent aaf7631ef3
commit 8a25040a26

View File

@@ -25,7 +25,7 @@
<el-button type="text" @click="handleEdit(row)">编辑</el-button>
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
<el-button type="text" @click="handleZip(row)">打包更新</el-button>
<el-button type="text" v-if="row.download" @click="handleDownload(row)">下载</el-button>
<el-button type="text" v-if="row.download&&row.target" @click="handleDownload(row)">下载</el-button>
</template>
</el-table-column>
</ai-table>
@@ -128,7 +128,7 @@ export default {
if (row.count >= 100) {
clearInterval(timer)
this.$message.error("打包失败!")
} else if (row.count <= 20) {
} else if (row.count <= 20 && row.target) {
row.count++
} else this.handleConfirmZip(row).then(v => {
if (v.error) {