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', '创建时间'),