diff --git a/src/pages/matter/widget/MatterPanel.tsx b/src/pages/matter/widget/MatterPanel.tsx index 2995541..f3b2494 100644 --- a/src/pages/matter/widget/MatterPanel.tsx +++ b/src/pages/matter/widget/MatterPanel.tsx @@ -274,12 +274,17 @@ export default class MatterPanel extends TankComponent { /> )} - - SafeUtil.stopPropagationWrap(e)(this.clipboard())} - /> - + {/*文件夹不支持复制路径 安全问题*/} + {!matter.dir && ( + + + SafeUtil.stopPropagationWrap(e)(this.clipboard()) + } + /> + + )} { , ] : []), -
SafeUtil.stopPropagationWrap(e)(this.clipboard())} - > - - {Lang.t('matter.copyLink')} -
, + ...(matter.dir + ? [] + : [ +
SafeUtil.stopPropagationWrap(e)(this.clipboard())} + > + + {Lang.t('matter.copyLink')} +
, + ]),
SafeUtil.stopPropagationWrap(e)(matter.download())}