修复站点详情页应用列表页不显示问题,去掉不必要的字段
This commit is contained in:
parent
9a1179b362
commit
3a5b10157f
@ -101,12 +101,6 @@ function getAppsTabColumns(forSite: boolean) {
|
||||
else return '免费';
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '仓库',
|
||||
fieldname: 'repository_url',
|
||||
format: value => String(value).split('/').slice(-2).join('/'),
|
||||
link: value => String(value)
|
||||
},
|
||||
{
|
||||
label: '分支',
|
||||
fieldname: 'branch',
|
||||
@ -115,23 +109,6 @@ function getAppsTabColumns(forSite: boolean) {
|
||||
link: (value, row) => {
|
||||
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'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -1375,7 +1375,7 @@ def get_installed_apps(site, query_filters: dict | None = None):
|
||||
app_source.plan_info = jingrow.db.get_value(
|
||||
"Marketplace App Plan",
|
||||
subscription.plan,
|
||||
["price_usd", "price_cny", "name", "plan"],
|
||||
["price_usd", "price_cny", "name", "title"],
|
||||
as_dict=True,
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user