feat: add order detail done function

This commit is contained in:
2025-10-10 17:08:20 +08:00
parent 7e64968e42
commit 4c98dbd2b9

View File

@@ -62,6 +62,7 @@
<template #menu="{ row }">
<el-button type="text"
icon="el-icon-download"
v-if="row.status === 1"
@click.stop="handleDownload(row)">Download
</el-button>
<el-button type="text"
@@ -298,7 +299,7 @@ export default {
return doneDetail(row);
})
.then(() => {
this.onLoad(this.page);
this.onLoadSub(this.pageSub);
this.$message({
type: 'success',
message: 'Success!'
@@ -306,7 +307,6 @@ export default {
});
},
handleDownload(row) {
// 安全访问数组,避免 undefined.map()
const urlData = (row.photos || []).map(url => ({ url }));
const u = (row.stickers || []).map(url => ({ url }));
const t = (row.texts || []).map(t => ({