@@ -83,7 +83,7 @@ import { IdentityState } from '~/composables'
8383import { useIdentityStateStore } from ' ~/stores/identityState'
8484import { useIdentityAffectationStore } from ' ~/stores/identityAffectation'
8585import { useMenu } from ' ~/composables'
86- import ReconnectingEventSource from " reconnecting-eventsource" ;
86+ import ReconnectingEventSource from ' reconnecting-eventsource'
8787
8888const identityStateStore = useIdentityStateStore ()
8989
@@ -94,7 +94,6 @@ let orchestratorVersion = ref<object | null>(null)
9494let appManagerVersion = ref <object | null >(null )
9595let daemonVersion = ref <object | null >(null )
9696
97-
9897onMounted (async () => {
9998 if (process .env .NODE_ENV === ' development' ) {
10099 orchestratorVersion .value = { currentVersion: ' 0.0.0-dev' , lastVersion: ' 0.0.0-dev' , updateAvailable: false }
@@ -136,9 +135,9 @@ onMounted(async () => {
136135 daemonVersion .value = daemonVersionRes .value ?.data
137136})
138137
139- const esUrl = new URL (window .location .origin + " /api/core/backends/sse" )
140- esUrl .searchParams .append (" id " , ' ' + auth .user ?._id )
141- esUrl .searchParams .append (" key" , ' ' + auth .user ?.sseToken )
138+ const esUrl = new URL (window .location .origin + ' /api/core/backends/sse' )
139+ esUrl .searchParams .append (' id ' , ' ' + auth .user ?._id )
140+ esUrl .searchParams .append (' key' , ' ' + auth .user ?.sseToken )
142141var es = new ReconnectingEventSource (esUrl )
143142
144143// console.log('identityStateStore.getProcessingCount', identityStateStore.getProcessingCount)
@@ -184,7 +183,6 @@ async function onmessage(event) {
184183 }
185184 break
186185 }
187-
188186 } catch (e ) {
189187 console .error (e )
190188 }
0 commit comments