changes
This commit is contained in:
@@ -7,9 +7,9 @@ export default defineNuxtPlugin(() => {
|
||||
const module = "application";
|
||||
const mode = "dev";
|
||||
const paths = [
|
||||
{ name: "dev", url: "https://dev.api.utopia.com.vn/" },
|
||||
{ name: "dev", url: "https://erpapi.bigdatatech.vn/" },
|
||||
{ name: "local", url: "http://localhost:8000/" },
|
||||
{ name: "prod", url: "https://api.utopia.com.vn/" },
|
||||
{ name: "prod", url: "https://erpapi.bigdatatech.vn/" },
|
||||
];
|
||||
const path = paths.find((v) => v.name === mode).url;
|
||||
const apis = [
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
const { $getapi, $readyapi } = useNuxtApp()
|
||||
let connlist = $readyapi(['moneyunit', 'datatype', 'filterchoice', 'colorchoice', 'textalign', 'placement', 'colorscheme',
|
||||
let connlist = $readyapi(['datatype', 'filterchoice', 'colorchoice', 'textalign', 'placement', 'colorscheme',
|
||||
'filtertype', 'sorttype', 'tablesetting', 'settingchoice', 'sharechoice', 'menuchoice', 'settingtype', 'settingclass',
|
||||
'common', 'sex', 'legaltype', 'cart'])
|
||||
'sex', 'legaltype', 'cart'])
|
||||
let filter = connlist.filter(v=>!v.ready)
|
||||
if(filter.length>0) await $getapi(filter)
|
||||
})
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { defineNuxtPlugin } from "#app";
|
||||
import Dashboard from '@/components/dashboard/Dashboard.vue';
|
||||
import Orders from '@/components/orders/Orders.vue';
|
||||
import Inventory from '@/components/inventory/Inventory.vue';
|
||||
import Notebox from "~/components/common/Notebox.vue";
|
||||
import ProductCountbox from "~/components/common/ProductCountbox.vue";
|
||||
import SvgIcon from "~/components/SvgIcon.vue";
|
||||
@@ -126,6 +129,9 @@ const components = {
|
||||
DebtCustomer,
|
||||
Due,
|
||||
Overdue,
|
||||
Dashboard,
|
||||
Orders,
|
||||
Inventory
|
||||
};
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
|
||||
Reference in New Issue
Block a user