修正 文章分类更新名称去重判断

This commit is contained in:
wkj 2025-09-26 19:03:19 +08:00
parent 122e868b52
commit 4bf2afa45c
6 changed files with 19 additions and 4 deletions

View File

@ -1,9 +1,10 @@
/// <reference types="react" />
import { GenerateUrlFn } from "../../../types/Article";
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "article", true, {
entityId: string;
articleMenuId: string | undefined;
generateUrl: GenerateUrlFn;
empty: React.ReactNode | undefined;
empty: import("react").ReactNode;
menuCheck: (isArticle: boolean) => void;
}>) => React.ReactElement;
export default _default;

View File

@ -1,3 +1,4 @@
/// <reference types="react" />
import { EntityDict } from "../../../oak-app-domain";
import { GenerateUrlFn } from "../../../types/Article";
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, false, {
@ -5,8 +6,8 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
entityId: string;
title: string;
origin: string;
menuEmpty: React.ReactNode | undefined;
articleEmpty: React.ReactNode | undefined;
menuEmpty: import("react").ReactNode;
articleEmpty: import("react").ReactNode;
generateUrl: GenerateUrlFn;
}>) => React.ReactElement;
export default _default;

View File

@ -1,3 +1,4 @@
/// <reference types="react" />
import { GenerateUrlFn } from "../../../types/Article";
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "articleMenu", true, {
entity: string;
@ -6,7 +7,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
origin: string;
onMenuClick: (menuId: string, menuName: string, isArticle: boolean) => void;
onArticleClick: (atricleId: string) => void;
empty: React.ReactNode | undefined;
empty: import("react").ReactNode;
changeAddArticle: (show: boolean) => void;
generateUrl: GenerateUrlFn;
}>) => React.ReactElement;

View File

@ -141,6 +141,8 @@ const triggers = [
id: 1,
name: 1,
parentId: 1,
entity: 1,
entityId: 1,
},
filter,
}, {});
@ -152,6 +154,8 @@ const triggers = [
parentId: 1,
},
filter: {
entity: articleMenu.entity,
entityId: articleMenu.entityId,
name: data.name,
parentId: articleMenu.parentId
? articleMenu.parentId

View File

@ -143,6 +143,8 @@ const triggers = [
id: 1,
name: 1,
parentId: 1,
entity: 1,
entityId: 1,
},
filter,
}, {});
@ -154,6 +156,8 @@ const triggers = [
parentId: 1,
},
filter: {
entity: articleMenu.entity,
entityId: articleMenu.entityId,
name: data.name,
parentId: articleMenu.parentId
? articleMenu.parentId

View File

@ -192,6 +192,8 @@ const triggers: Trigger<
id: 1,
name: 1,
parentId: 1,
entity: 1,
entityId :1,
},
filter,
},
@ -207,6 +209,8 @@ const triggers: Trigger<
parentId: 1,
},
filter: {
entity: articleMenu.entity!,
entityId: articleMenu.entityId!,
name: (data as any).name,
parentId: articleMenu.parentId
? articleMenu.parentId