Browse Source

feat:工程下载doDownloadProject-type

ananzhusen 1 month ago
parent
commit
ad417feca4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/services/project.ts

+ 6 - 1
src/services/project.ts

@@ -837,12 +837,17 @@ export const doDownloadProject = async () => {
         ))
       );
     }
+    const map = {
+      [Frame.vue2]: 'toVue2',
+      [Frame.vue3]: 'toVue3',
+      [Frame.react]: 'toReact',
+    };
     for (let key in page3dDatas) {
       flag_3d = true;
       let source3dList = await getResource(
         page3dDatas[key].data,
         key,
-        'deploy'
+        map[downloadType]
       );
       dList.push(...source3dList);
     }