chore(editor): ts报错修改

This commit is contained in:
parisma 2022-09-28 16:32:21 +08:00 committed by jia000
parent d8488782df
commit 52722ec5d4
2 changed files with 1 additions and 4 deletions

View File

@ -122,7 +122,6 @@ watchEffect(async () => {
state.codeList.push({
id: key,
name: value.name,
content: value.content,
});
});
currentTitle.value = state.codeList[0]?.name || '';

View File

@ -358,7 +358,7 @@ export interface CodeDslList {
/** 代码块名称 */
name: string;
/** 代码块函数内容 */
codeBlockContent: CodeBlockContent;
codeBlockContent?: CodeBlockContent;
/** 是否展示代码绑定关系 */
showRelation?: boolean;
}
@ -374,8 +374,6 @@ export interface ListRelationState extends ListState {
/** 代码块id : 组件信息 */
[id: string]: MNode[];
};
/** codeDsl内容用于暴露给业务方 */
// codeDsl: CodeBlockDSL | null;
}
export enum CodeDeleteErrorType {