@@ -13,6 +13,7 @@ import {
1313 DrawerStateService ,
1414 IframeCommunicationService
1515} from '@app/services' ;
16+ import { CookieService } from 'ngx-cookie-service' ;
1617
1718@Component ( {
1819 standalone : false ,
@@ -34,6 +35,7 @@ export class PagesConnectComponent implements OnInit, OnDestroy {
3435 // Direct 模式相关属性
3536 public endpoint : Endpoint ;
3637 public assetId : string = '' ;
38+ public org_id : string = '' ;
3739 public username : string = '' ;
3840 public protocol : string = '' ;
3941 public accountId : string = '' ;
@@ -61,6 +63,7 @@ export class PagesConnectComponent implements OnInit, OnDestroy {
6163 private _logger : LogService ,
6264 private _viewSrv : ViewService ,
6365 private _route : ActivatedRoute ,
66+ private _cookie : CookieService ,
6467 private _dialog : NzModalService ,
6568 private _drawerStateService : DrawerStateService ,
6669 private _iframeCommunicationService : IframeCommunicationService
@@ -82,7 +85,6 @@ export class PagesConnectComponent implements OnInit, OnDestroy {
8285
8386 if ( this . isDirect ) {
8487 await this . initDirectMode ( ) ;
85-
8688 } else {
8789 this . handleEventChangeTime ( ) ;
8890 }
@@ -109,6 +111,10 @@ export class PagesConnectComponent implements OnInit, OnDestroy {
109111 this . accountId = params [ 'account' ] ;
110112 this . assetId = params [ 'asset' ] ;
111113 this . protocol = params [ 'protocol' ] ;
114+ this . org_id = params [ 'org_id' ] ;
115+
116+ this . _cookie . set ( 'X-JMS-LUNA-ORG' , this . org_id , 30 , '/' ) ;
117+
112118 this . _logger . info ( 'Direct mode detected' , {
113119 accountId : this . accountId ,
114120 assetId : this . assetId ,
0 commit comments