This commit is contained in:
ChoChoX
2026-06-29 14:49:46 +08:00
parent bd64fc6b0a
commit 8360cbea77
6 changed files with 86 additions and 41 deletions

View File

@@ -431,7 +431,7 @@ const canOperate = computed(() => canUpdate.value || canDelete.value)
</div>
<template #footer>
<el-button @click="closeDetail">关闭</el-button>
<el-button type="primary" @click="(() => { const d = currentDetail; closeDetail(); editProduct(d) })()">编辑</el-button>
<el-button type="primary" @click="(() => { const d = currentDetail; closeDetail(); editProduct(d) })()" v-if="canUpdate">编辑</el-button>
</template>
</el-dialog>