This commit is contained in:
Viet An
2026-06-01 10:17:47 +07:00
parent 5e958e4166
commit a39a8b3d43
10 changed files with 33 additions and 33 deletions

View File

@@ -1232,7 +1232,7 @@ export default defineNuxtPlugin((nuxtApp) => {
}
return rs;
} catch (err) {
console.log(err);
console.error(err);
return "error";
}
};

View File

@@ -1,6 +1,6 @@
export default defineNuxtPlugin(async (nuxtApp) => {
const { $getapi, $readyapi } = nuxtApp;
let connlist = $readyapi([
const connlist = $readyapi([
"datatype",
"common",
"filterchoice",
@@ -18,6 +18,6 @@ export default defineNuxtPlugin(async (nuxtApp) => {
"settingclass",
"sex",
]);
let notReadyConns = connlist.filter((v) => !v.ready);
const notReadyConns = connlist.filter((v) => !v.ready);
if (notReadyConns.length > 0) await $getapi(notReadyConns);
});