From c1644511da290d52cd5ed403428d649e4c7bc0cc Mon Sep 17 00:00:00 2001 From: ocpeng <43569914+ocpeng@users.noreply.github.com> Date: Tue, 28 Dec 2021 22:01:06 +0800 Subject: [PATCH] Update rollback.html --- sql/templates/rollback.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sql/templates/rollback.html b/sql/templates/rollback.html index 5d0b7dffec..dd69f525ef 100644 --- a/sql/templates/rollback.html +++ b/sql/templates/rollback.html @@ -92,10 +92,11 @@ title: '回滚语句', field: 1, formatter: function (value, row, index) { - if (value.length > 80) { - return value.substr(0, 80) + '...'; + var sql=row[1]; + if (sql.length > 80) { + return sql.substr(0, 80) + '...'; } else { - return value + return sql } } }, {