diff --git a/ruoyi-ui/src/views/skins/ttRoll/index.vue b/ruoyi-ui/src/views/skins/ttRoll/index.vue index c4114dd..31ac638 100644 --- a/ruoyi-ui/src/views/skins/ttRoll/index.vue +++ b/ruoyi-ui/src/views/skins/ttRoll/index.vue @@ -526,7 +526,9 @@ export default { this.multiple = !selection.length; }, handleDelete(row) { - const ids = row ? [row] : this.ids; + // 顶部按钮直接触发时 row 是点击事件对象,需过滤掉 + const singleId = (typeof row === "number" || typeof row === "string") ? row : null; + const ids = singleId != null ? [singleId] : this.ids; if (!ids || ids.length === 0) { this.$modal.msgWarning("请至少选择一条数据"); return;