diff --git a/src/app/edit/(main)/(router)/file/page.tsx b/src/app/edit/(main)/(router)/file/page.tsx
index 7944549..a6aa4d9 100644
--- a/src/app/edit/(main)/(router)/file/page.tsx
+++ b/src/app/edit/(main)/(router)/file/page.tsx
@@ -8,56 +8,6 @@ import { TreeViewElement } from '@/components/extension/tree-view-api';
const FileTree = dynamic(() => import('@/components/file/fileTree'), { ssr: false });
-// const data = [
-// {
-// id: '1',
-// filename: 'components',
-// children: [
-// {
-// id: '2',
-// filename: 'extension',
-// children: [
-// {
-// id: '3',
-// filename: 'tree-view.tsx',
-// value: '我42424是page8',
-// },
-// {
-// id: '4',
-// filename: 'tree-view-api.tsx',
-// value: '11111我是page8',
-// },
-// ],
-// },
-// {
-// id: '5',
-// filename: 'dashboard-tree.tsx',
-// value: '我4242是page8',
-// },
-// ],
-// },
-// {
-// id: '6',
-// filename: 'pages',
-// children: [
-// {
-// id: '7',
-// filename: 'page.tsx',
-// value: '我是page31318',
-// },
-// {
-// id: '8',
-// filename: 'page-guide.tsx',
-// value: '我是page8',
-// },
-// ],
-// },
-// {
-// id: '18',
-// filename: 'env.ts',
-// value: '我是page118',
-// },
-// ];
const PortsPage: React.FC = () => {
const { fileData } = useUploadFileDataStore();
if (fileData === null) return null;
@@ -66,7 +16,7 @@ const PortsPage: React.FC = () => {
if (!Array.isArray(fileData)) data = [fileData];
return (
-
+
资源管理器
diff --git a/src/components/modals/create-project-modal/index.tsx b/src/components/modals/create-project-modal/index.tsx
index d15c807..7a39dcd 100644
--- a/src/components/modals/create-project-modal/index.tsx
+++ b/src/components/modals/create-project-modal/index.tsx
@@ -35,9 +35,12 @@ export const CreateProjectModal = () => {
onClose();
setFileData(res);
router.push('edit/file');
- setLoading(false);
}, 1000);
}
+
+ setTimeout(() => {
+ setLoading(false);
+ }, 1000);
}}
className="flex justify-center flex-col items-center mt-2 gap-x-2 py-6 border-white/20 border-[1px] rounded-sm cursor-pointer"
>