diff --git a/src/pages/componentDevelopment/componentCoding/index.tsx b/src/pages/componentDevelopment/componentCoding/index.tsx index 577de73..a08ec46 100644 --- a/src/pages/componentDevelopment/componentCoding/index.tsx +++ b/src/pages/componentDevelopment/componentCoding/index.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState, useRef } from 'react'; import styles from './style/index.module.less'; -import { Button, Select, Space, Message, Modal, Input } from '@arco-design/web-react'; +import { Button, Select, Space, Message, Modal, Input, Empty } from '@arco-design/web-react'; import { IconFullscreen, IconFullscreenExit } from '@arco-design/web-react/icon'; import { useSelector, useDispatch } from 'react-redux'; import { getMyComponentList } from '@/api/componentBase'; @@ -149,7 +149,8 @@ const ComponentCoding = () => { const uri = getCodeServerUri(); // 使用传入的localProjectPath或默认值 - const path = componentCoding.localProjectPath || '/000000/admin_testcode1/master'; + const path = componentCoding.localProjectPath; + if (!path) return; setServerUrl(`${uri}?folder=${codeServerFolderPre}${path}`); }, [componentCoding]); @@ -267,7 +268,18 @@ const ComponentCoding = () => { )} -