From 30b991cc28bd4aac77eacee299a3e6ec3eb8f79f Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Mon, 23 Dec 2024 18:18:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E4=BC=98=E5=8C=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=85=83=E7=B4=A0=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gringotts-frontend/pages/index/main.js | 6 +++--- gringotts-frontend/pages/index/tab-data.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gringotts-frontend/pages/index/main.js b/gringotts-frontend/pages/index/main.js index 93055cc..30560bd 100644 --- a/gringotts-frontend/pages/index/main.js +++ b/gringotts-frontend/pages/index/main.js @@ -71,7 +71,7 @@ useAmis((information) => { label: '数据市场', icon: 'fa fa-store', level: 'link', - className: 'text-bold text-white', + className: "text-bold ${IF(activePage === 'market', 'text-primary', 'text-white')}", onEvent: { click: { actions: [ @@ -93,7 +93,7 @@ useAmis((information) => { label: '我的资源', icon: 'fa fa-database', level: 'link', - className: 'text-bold text-white', + className: "text-bold ${IF(activePage === 'tab', 'text-primary', 'text-white')}", onEvent: { click: { actions: [ @@ -138,7 +138,7 @@ useAmis((information) => { ], bodyClassName: 'p-0', data: { - activePage: 'market', + activePage: 'tab', tabActiveKey: 'data' }, body: [ diff --git a/gringotts-frontend/pages/index/tab-data.js b/gringotts-frontend/pages/index/tab-data.js index e853e19..0c7a4e6 100644 --- a/gringotts-frontend/pages/index/tab-data.js +++ b/gringotts-frontend/pages/index/tab-data.js @@ -115,6 +115,8 @@ export function tabData() { { name: 'description', label: '描述', + type: 'tpl', + tpl: '${TRUNCATE(description, 100)}', }, mappingField('state', '状态', permissionStateMapping), timeField('createdTime', '创建时间'),