changes
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user