File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,15 @@ export const useInfraStore = defineStore("infra", {
5050        if  ( this . app_mode  ==  appMode . appMode . DESKTOP )  { 
5151          const  viewer_store  =  useViewerStore ( ) 
5252          const  geode_store  =  useGeodeStore ( ) 
53-           const  back_port  =  await  window . electronAPI . run_back ( 
54-             geode_store . default_local_port , 
55-           ) 
53+ 
54+           const  [ back_port ,  viewer_port ]  =  await  Promise . all ( [ 
55+             window . electronAPI . run_back ( ) , 
56+             window . electronAPI . run_viewer ( ) , 
57+           ] ) 
58+           geode_store . $patch ( {  default_local_port : back_port  } ) 
59+ 
5660          geode_store . $patch ( {  default_local_port : back_port  } ) 
57-           const  viewer_port  =  await  window . electronAPI . run_viewer ( 
58-             viewer_store . default_local_port , 
59-           ) 
61+           const  viewer_port  =  await  window . electronAPI . run_viewer ( ) 
6062          viewer_store . $patch ( {  default_local_port : viewer_port  } ) 
6163        }  else  if  ( this . app_mode  ==  appMode . appMode . CLOUD )  { 
6264          const  {  data,  error }  =  await  useFetch ( this . lambda_url ,  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments