This commit is contained in:
Viet An
2026-05-06 08:54:02 +07:00
parent f5123ee018
commit 6e10dffd22
23 changed files with 102 additions and 2733 deletions

View File

@@ -1,10 +1,10 @@
export default defineNuxtPlugin(async (nuxtApp) => {
const { $getapi, $readyapi } = useNuxtApp();
const { $getapi, $readyapi } = nuxtApp;
let connlist = $readyapi([
"datatype",
"common",
"filterchoice",
"colorchoice",
"common",
"textalign",
"placement",
"colorscheme",
@@ -17,9 +17,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {
"settingtype",
"settingclass",
"sex",
"legaltype",
"cart",
]);
let filter = connlist.filter((v) => !v.ready);
if (filter.length > 0) await $getapi(filter);
let notReadyConns = connlist.filter((v) => !v.ready);
if (notReadyConns.length > 0) await $getapi(notReadyConns);
});