修复站点详情页应用列表页不显示问题,去掉不必要的字段

This commit is contained in:
jingrow 2025-04-22 11:20:00 +08:00
parent 9a1179b362
commit 3a5b10157f
2 changed files with 1 additions and 24 deletions

View File

@ -101,12 +101,6 @@ function getAppsTabColumns(forSite: boolean) {
else return '免费'; else return '免费';
} }
}, },
{
label: '仓库',
fieldname: 'repository_url',
format: value => String(value).split('/').slice(-2).join('/'),
link: value => String(value)
},
{ {
label: '分支', label: '分支',
fieldname: 'branch', fieldname: 'branch',
@ -115,23 +109,6 @@ function getAppsTabColumns(forSite: boolean) {
link: (value, row) => { link: (value, row) => {
return `${row.repository_url}/tree/${value}`; return `${row.repository_url}/tree/${value}`;
} }
},
{
label: '提交',
fieldname: 'hash',
type: 'Badge',
width: 1,
link: (value, row) => {
return `${row.repository_url}/commit/${value}`;
},
format(value) {
return String(value).slice(0, 7);
}
},
{
label: '提交信息',
fieldname: 'commit_message',
width: '30rem'
} }
]; ];

View File

@ -1375,7 +1375,7 @@ def get_installed_apps(site, query_filters: dict | None = None):
app_source.plan_info = jingrow.db.get_value( app_source.plan_info = jingrow.db.get_value(
"Marketplace App Plan", "Marketplace App Plan",
subscription.plan, subscription.plan,
["price_usd", "price_cny", "name", "plan"], ["price_usd", "price_cny", "name", "title"],
as_dict=True, as_dict=True,
) )