File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,17 @@ onMounted(async () => {
103103 return
104104 }
105105
106- const { data : orchestratorVersionRes } = await useHttp <any >(' /get-update/sesame-orchestrator' )
106+ const { data : orchestratorVersionRes } = await useHttp <any >(' /get-update/sesame-orchestrator' , {
107+ signal: AbortSignal .timeout (2000 ),
108+ })
107109 const { data : appManagerVersionRes } = await useHttp <any >(' /get-update/sesame-app-manager' , {
110+ signal: AbortSignal .timeout (2000 ),
108111 query: {
109112 current: config .appManagerVersion || ' 0.0.0' ,
110113 },
111114 })
112115 const { data : daemonVersionDump } = await useHttp <any >(' /core/backends/execute' , {
116+ signal: AbortSignal .timeout (2000 ),
113117 method: ' POST' ,
114118 query: {
115119 timeoutDiscard: true ,
@@ -122,6 +126,7 @@ onMounted(async () => {
122126 },
123127 })
124128 const { data : daemonVersionRes } = await useHttp <any >(' /get-update/sesame-daemon' , {
129+ signal: AbortSignal .timeout (2000 ),
125130 query: {
126131 current: daemonVersionDump ?.value ?.response ?.data [0 ]?.version || ' 0.0.0' ,
127132 },
You can’t perform that action at this time.
0 commit comments