|
|
|
|
@ -9,8 +9,7 @@ import {
|
|
|
|
|
Message
|
|
|
|
|
} from '@arco-design/web-react';
|
|
|
|
|
import { getComponentClassify } from '@/api/componentClassify';
|
|
|
|
|
import { copyDesign } from '@/api/componentMarket';
|
|
|
|
|
import { copyAll } from '@/api/componentBase';
|
|
|
|
|
import { copyAllMarket, copyDesignMarket } from '@/api/componentMarket';
|
|
|
|
|
import EditorSection from '@/components/EditorSection';
|
|
|
|
|
|
|
|
|
|
const FormItem = Form.Item;
|
|
|
|
|
@ -97,7 +96,7 @@ const CopyComponentModal: React.FC<CopyComponentModalProps> = ({
|
|
|
|
|
desc: description
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const res: any = await copyDesign(params);
|
|
|
|
|
const res: any = await copyDesignMarket(params);
|
|
|
|
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
Message.success('仅复制设计成功');
|
|
|
|
|
@ -132,7 +131,7 @@ const CopyComponentModal: React.FC<CopyComponentModalProps> = ({
|
|
|
|
|
desc: description
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const res: any = await copyAll(params);
|
|
|
|
|
const res: any = await copyAllMarket(params);
|
|
|
|
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
Message.success('复制设计和代码成功');
|
|
|
|
|
|