改了样式,修复了问题
This commit is contained in:
parent
f5acbafaf4
commit
47f02d7ec5
|
|
@ -1,5 +1,6 @@
|
||||||
.heading{
|
.heading{
|
||||||
color:rgb(97, 218, 251);
|
color:rgb(97, 218, 251);
|
||||||
|
text-indent: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.id {
|
.id {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ const List = (
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h3 className={Styles.heading}> 评论区</h3>
|
<h3 className={Styles.heading}>评论区</h3>
|
||||||
|
|
||||||
{list && (
|
{list && (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ const List = (
|
||||||
) => {
|
) => {
|
||||||
const { list } = props.data;
|
const { list } = props.data;
|
||||||
const { t } = props.methods;
|
const { t } = props.methods;
|
||||||
|
const { removeItem, execute } = props.methods;
|
||||||
|
|
||||||
const attrs = [
|
const attrs = [
|
||||||
{
|
{
|
||||||
|
|
@ -72,10 +73,4 @@ const List = (
|
||||||
|
|
||||||
export default List;
|
export default List;
|
||||||
|
|
||||||
function removeItem(id: any) {
|
|
||||||
throw new Error('Function not implemented.');
|
|
||||||
}
|
|
||||||
function execute() {
|
|
||||||
throw new Error('Function not implemented.');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,29 +54,7 @@ const triggers: Trigger<EntityDict, 'essay', BackendRuntimeContext>[] = [
|
||||||
return 1;
|
return 1;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
//在删除之前先删除相关的comments
|
|
||||||
{
|
|
||||||
name: '删除之前删除相关的comments',
|
|
||||||
entity: 'essay',
|
|
||||||
action: 'remove',
|
|
||||||
when: "before",
|
|
||||||
fn: async ({ operation }, context, option) => {
|
|
||||||
const { filter } = operation;
|
|
||||||
const opRes = await context.operate(
|
|
||||||
'comment',
|
|
||||||
{
|
|
||||||
action: 'remove',
|
|
||||||
id: await generateNewIdAsync(),
|
|
||||||
data: {},
|
|
||||||
filter: {
|
|
||||||
essay: filter,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
option
|
|
||||||
);
|
|
||||||
return opRes.oper?.remove;
|
|
||||||
},
|
|
||||||
} as RemoveTrigger<EntityDict,'essay',BackendRuntimeContext>,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default triggers;
|
export default triggers;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue