changes
This commit is contained in:
@@ -14,8 +14,15 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
const notReadyConns = connlist.filter((v) => !v.ready);
|
||||
|
||||
async function getReady() {
|
||||
await $getapi(notReadyConns);
|
||||
store.ready = true;
|
||||
try {
|
||||
await $getapi(notReadyConns);
|
||||
store.ready = true;
|
||||
} catch (error) {
|
||||
showError({
|
||||
statusCode: 500,
|
||||
statusMessage: `api-loader plugin failed: ${error.message}`,
|
||||
});
|
||||
}
|
||||
}
|
||||
if (notReadyConns.length > 0) getReady();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user