From 396db182342c29363dfb234df2c741258c9cc39b Mon Sep 17 00:00:00 2001 From: kungfuboy <17kungfuboy@gmail.com> Date: Tue, 13 Sep 2022 23:14:23 +0800 Subject: [PATCH] feat: revert form reset for now --- .../src/app/pages/api/websocket/websocket.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workbench/browser/src/app/pages/api/websocket/websocket.component.ts b/src/workbench/browser/src/app/pages/api/websocket/websocket.component.ts index 6d05645a4..d8afd7b03 100644 --- a/src/workbench/browser/src/app/pages/api/websocket/websocket.component.ts +++ b/src/workbench/browser/src/app/pages/api/websocket/websocket.component.ts @@ -271,7 +271,7 @@ export class WebsocketComponent implements OnInit, OnDestroy { } checkTabCanLeave = () => { if (this.wsStatus === 'disconnect') { - this.resetForm(); + // this.resetForm(); return true; } return new Promise((resolve) => { @@ -285,7 +285,7 @@ export class WebsocketComponent implements OnInit, OnDestroy { type: 'primary', onClick: () => { modal.destroy(); - this.resetForm(); + // this.resetForm(); // * disconnect ws connect this.handleConnect('disconnect'); resolve(true);