fix: 修复关闭SSH终端标签页时会话状态未更新的问题

This commit is contained in:
2026-04-18 02:35:38 +08:00
commit 6e2e2f9387
43467 changed files with 5489040 additions and 0 deletions
@@ -0,0 +1,17 @@
import * as React from 'react';
const wrapInStatefulComponent = (Comp) => {
const Decorated = class extends React.Component<any, any> {
render () {
return Comp(this.props, this.context);
}
};
if (process.env.NODE_ENV !== 'production') {
(Decorated as any).displayName = `Decorated(${Comp.displayName || Comp.name})`;
}
return Decorated;
};
export default wrapInStatefulComponent;