!1429 修复:模板界面报错问题

pull/1429/MERGE
ZoeLeeFZ 4 years ago committed by ChenX
parent 6b408fb054
commit ffdaf9d8c4

@ -55,6 +55,7 @@ export class KnifeList extends React.Component<IKnifeListProps, { isContextMenuO
{
this.props.info.id = tpline.topline_id;
this.props.info.name = tpline.name;
if (!tpline.topline_id) return;
if (!tpline.props)
tpline.props = { radius: 3, angle: 45 };
if (typeof tpline.props === "string")

@ -106,6 +106,7 @@ export class TemplateList extends React.Component<ITemplateListProps> {
//点击了同一个模板
if (mid === this.props.currentInfo.id) return;
this.props.currentInfo.id = mid;
if(!mid) return;
this.props.currentInfo.name = temp.name;
this.props.currentInfo.logo = temp.logo;
this.props.currentInfo.isHandle = this.props.currentDir.path.includes("拉手");

Loading…
Cancel
Save