|
|
|
|
@ -14,7 +14,7 @@ const ComponentCoding = () => {
|
|
|
|
|
const [serverUrl, setServerUrl] = useState(''); // code-server 地址
|
|
|
|
|
const [optionsList, setOptionsList] = useState([]); // 下拉选择菜单
|
|
|
|
|
const [originList, setOriginList] = useState([]); // 原始数据-组件列表
|
|
|
|
|
const [currentComponent, setCurrentComponent] = useState({}); // 当前组件信息
|
|
|
|
|
const [currentComponent, setCurrentComponent] = useState<any>({}); // 当前组件信息
|
|
|
|
|
const [isFullscreen, setIsFullscreen] = useState(false); // 全屏状态
|
|
|
|
|
const [commitMessage, setCommitMessage] = useState(''); // 提交信息
|
|
|
|
|
const [commitModal, setCommitModal] = useState(false); // 提交信息弹窗
|
|
|
|
|
@ -101,9 +101,9 @@ const ComponentCoding = () => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const openModal = (value) => {
|
|
|
|
|
const selectedItem = originList.find(item => item.localProjectPath === value);
|
|
|
|
|
dispatch(updateComponentCodingPath(selectedItem));
|
|
|
|
|
const copyGitUrlHandler = () => {
|
|
|
|
|
navigator.clipboard.writeText(currentComponent.repoHtmlUrl);
|
|
|
|
|
Message.success('复制成功');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
@ -216,7 +216,7 @@ const ComponentCoding = () => {
|
|
|
|
|
/>
|
|
|
|
|
同步代码
|
|
|
|
|
</span>
|
|
|
|
|
<span className={styles['align']}>
|
|
|
|
|
<span className={styles['align']} onClick={copyGitUrlHandler}>
|
|
|
|
|
<img src={'/ideContainer/imgs/git.svg'} style={{ width: 16, height: 16, marginRight: 5 }} />
|
|
|
|
|
复制git地址
|
|
|
|
|
</span>
|
|
|
|
|
|