|
@@ -423,7 +423,7 @@ export const save = async (
|
|
|
// comData.name =
|
|
|
// (meta2d.store.active[0] as any).description ||
|
|
|
// `meta2d.${new Date().toLocaleString()}`;
|
|
|
- comData.name = comData.name = (meta2d.store.active[0] as any).description ||'新建项目';
|
|
|
+ comData.name = (meta2d.store.active[0] as any).description ||'新建项目';
|
|
|
let blob: Blob;
|
|
|
try {
|
|
|
blob = dataURLtoBlob(meta2d.activeToPng(10) + '');
|
|
@@ -434,7 +434,7 @@ export const save = async (
|
|
|
return;
|
|
|
}
|
|
|
//todo 传参数
|
|
|
- const file:any = await upload(blob, true, comData.name, `/大屏/组件/默认`,'new');
|
|
|
+ const file:any = await upload(blob, true, comData.name + '.' +dayjs().format('YYYYMMDDHHMMss'), `/大屏/组件/默认`,'new');
|
|
|
if (!file) {
|
|
|
return;
|
|
|
}
|
|
@@ -552,7 +552,7 @@ export const save = async (
|
|
|
true,
|
|
|
// 更新是缩略图路径一般为/file/2023/1025/1/1/新建项目_dfa573a5
|
|
|
// data.image?.split('/').pop()更新操作项目名不变
|
|
|
- data.name,
|
|
|
+ data.name + '.' + dayjs().format('YYYYMMDDHHMMss'),
|
|
|
`/大屏/${thumbFolder}/${data.folder || '默认'}`,
|
|
|
conflict
|
|
|
);
|