From b2d35154862026ffe9361691a15a3ba85f96e772 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Sun, 4 Jun 2023 23:03:32 +0800 Subject: [PATCH] Fixed tag too long bug --- ui/src/components/power/CommonTable.vue | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/ui/src/components/power/CommonTable.vue b/ui/src/components/power/CommonTable.vue index c5b15e9..5ab5cfe 100644 --- a/ui/src/components/power/CommonTable.vue +++ b/ui/src/components/power/CommonTable.vue @@ -13,9 +13,15 @@ type="info" >无 - {{ - column - }} + + {{ + column.length > 20 ? column.substring(0, 19) + '...' : column + }} + @@ -25,9 +31,15 @@ type="info" >无 - {{ - column - }} + + {{ + column.length > 20 ? column.substring(0, 19) + '...' : column + }} +