|
@@ -703,9 +703,9 @@ const getCollectionImageList = async (name?: string, collection?: string, userFl
|
|
}
|
|
}
|
|
|
|
|
|
for (const item of res.list) {
|
|
for (const item of res.list) {
|
|
- if(collection === 'v.component') {
|
|
|
|
- item.component = true;
|
|
|
|
- }
|
|
|
|
|
|
+ // if(collection === 'v.component') {
|
|
|
|
+ // item.component = true;
|
|
|
|
+ // }
|
|
if (item.folder && resultsMap[item.folder]) {
|
|
if (item.folder && resultsMap[item.folder]) {
|
|
resultsMap[item.folder].push(item);
|
|
resultsMap[item.folder].push(item);
|
|
} else {
|
|
} else {
|
|
@@ -1075,8 +1075,8 @@ const dragStart = async (event: DragEvent | MouseEvent, item: any) => {
|
|
const ret: any = await axios.post(`/api/data/v.component/get`, {
|
|
const ret: any = await axios.post(`/api/data/v.component/get`, {
|
|
id,
|
|
id,
|
|
});
|
|
});
|
|
- item.componentDatas = ret.data.componentDatas;
|
|
|
|
- item.componentData = ret.data.componentData;
|
|
|
|
|
|
+ item.componentDatas = ret.componentDatas;
|
|
|
|
+ item.componentData = ret.componentData;
|
|
}
|
|
}
|
|
if (item.componentData) {
|
|
if (item.componentData) {
|
|
const pens = convertPen([item.componentData]);
|
|
const pens = convertPen([item.componentData]);
|