diff --git a/frontend/src/components/ScriptTable.vue b/frontend/src/components/ScriptTable.vue index ad5769c..e202d88 100644 --- a/frontend/src/components/ScriptTable.vue +++ b/frontend/src/components/ScriptTable.vue @@ -146,7 +146,7 @@ : 'orange' " > - 剩余: + 剩余天数: {{ user.Info.RemainedDay < 1 ? '长期有效' : user.Info.RemainedDay + '天' }} @@ -210,6 +210,13 @@ > 剩余关卡: {{ user.Info.Stage_Remain }} + + + 备注: {{ truncateText(user.Info.Notes) }} + @@ -374,6 +381,11 @@ function get_annihilation_name(annihilation_name) { } return '未开启' } + +const truncateText = (text: string, maxLength: number = 20): string => { + if (!text) return '' + return text.length > maxLength ? text.substring(0, maxLength) + '...' : text +}