Files
web/app/plugins/03-api-loader.js
Viet An a39a8b3d43 c
2026-06-01 10:17:47 +07:00

24 lines
540 B
JavaScript

export default defineNuxtPlugin(async (nuxtApp) => {
const { $getapi, $readyapi } = nuxtApp;
const connlist = $readyapi([
"datatype",
"common",
"filterchoice",
"colorchoice",
"textalign",
"placement",
"colorscheme",
"filtertype",
"sorttype",
"tablesetting",
"settingchoice",
"sharechoice",
"menuchoice",
"settingtype",
"settingclass",
"sex",
]);
const notReadyConns = connlist.filter((v) => !v.ready);
if (notReadyConns.length > 0) await $getapi(notReadyConns);
});