|
@@ -33,6 +33,7 @@ export interface Meta2dBackData extends Meta2dData {
|
|
|
editorName?: string;
|
|
|
teams?: { id?: string; name?: string }[];
|
|
|
tags?: string[]; //标签数组
|
|
|
+ filename?: string; //后端存储的文件名
|
|
|
}
|
|
|
|
|
|
const notification = ref<any>(null);
|
|
@@ -159,16 +160,16 @@ export function checkData(data: Meta2dData) {
|
|
|
const pens: Pen[] = data.pens || [];
|
|
|
for (let i = 0; i < pens.length; i++) {
|
|
|
const pen: any = pens[i];
|
|
|
- pen.props?.custom?.forEach((prop)=>{
|
|
|
- if(prop.key?.includes('.')){
|
|
|
+ pen.props?.custom?.forEach((prop) => {
|
|
|
+ if (prop.key?.includes('.')) {
|
|
|
delete pen[prop.key];
|
|
|
}
|
|
|
});
|
|
|
- pen.realTimes?.forEach(realTime =>{
|
|
|
- if(realTime.key?.includes('.')){
|
|
|
+ pen.realTimes?.forEach((realTime) => {
|
|
|
+ if (realTime.key?.includes('.')) {
|
|
|
delete pen[realTime.key];
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
pen.events?.forEach((event: any) => {
|
|
|
delete event.setProps;
|
|
|
});
|