fix(editor): cose-select无法删除

This commit is contained in:
roymondchen 2025-12-24 15:38:02 +08:00
parent f0a39667e1
commit b0d8c5383b
2 changed files with 7 additions and 3 deletions

View File

@ -56,6 +56,13 @@ const codeConfig = computed<GroupListConfig>(() => ({
return Array.isArray(model.codeId) ? model.codeId.join('/') : index;
}
const codeContent = codeBlockService.getCodeContentById(model.codeId);
if (codeContent) {
return codeContent.name;
}
return model.codeId || index;
},
items: [

View File

@ -1,6 +1,3 @@
.m-fields-code-select {
width: 100%;
.el-card__header {
display: none;
}
}