diff --git a/src/components/frontend/home/comment/list/styles.module.less b/src/components/frontend/home/comment/list/styles.module.less
index aaca9ce..dfb640f 100644
--- a/src/components/frontend/home/comment/list/styles.module.less
+++ b/src/components/frontend/home/comment/list/styles.module.less
@@ -1,5 +1,6 @@
.heading{
color:rgb(97, 218, 251);
+ text-indent: 2em;
}
.id {
diff --git a/src/components/frontend/home/comment/list/web.pc.tsx b/src/components/frontend/home/comment/list/web.pc.tsx
index a95e965..dcf7626 100644
--- a/src/components/frontend/home/comment/list/web.pc.tsx
+++ b/src/components/frontend/home/comment/list/web.pc.tsx
@@ -41,7 +41,7 @@ const List = (
return (
<>
-
评论区
+ 评论区
{list && (
<>
diff --git a/src/pages/console/comment/list/web.pc.tsx b/src/pages/console/comment/list/web.pc.tsx
index 71d7c12..6907874 100644
--- a/src/pages/console/comment/list/web.pc.tsx
+++ b/src/pages/console/comment/list/web.pc.tsx
@@ -19,6 +19,7 @@ const List = (
) => {
const { list } = props.data;
const { t } = props.methods;
+ const { removeItem, execute } = props.methods;
const attrs = [
{
@@ -72,10 +73,4 @@ const List = (
export default List;
-function removeItem(id: any) {
- throw new Error('Function not implemented.');
-}
-function execute() {
- throw new Error('Function not implemented.');
-}
diff --git a/src/triggers/essay.ts b/src/triggers/essay.ts
index 55d29c3..d1a3fb8 100644
--- a/src/triggers/essay.ts
+++ b/src/triggers/essay.ts
@@ -54,29 +54,7 @@ const triggers: Trigger[] = [
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,
+
];
export default triggers;