This commit is contained in:
Viet An
2026-04-07 10:08:00 +07:00
parent f8bdfc98fc
commit 7402e61906
9 changed files with 673 additions and 436 deletions

View File

@@ -603,13 +603,6 @@ export default defineNuxtPlugin(() => {
url_detail: "data-detail/Menu_Choice/",
params: {},
},
{
name: "moneyunit",
commit: "moneyunit",
url: "data/Money_Unit/",
url_detail: "data-detail/Money_Unit/",
params: {},
},
{
name: "legaltype",
commit: "legaltype",
@@ -847,6 +840,7 @@ export default defineNuxtPlugin(() => {
store.commit("login", undefined);
store.commit("layersetting", undefined);
store.commit("lastlegendfiltertab", "Giỏ hàng");
console.log('requestLogin: redirect to login')
window.location.href = `https://${mode === "dev" ? "dev." : ""}login.utopia.com.vn/signin?module=${module}&link=${window.location.origin}`;
};
@@ -876,6 +870,7 @@ export default defineNuxtPlugin(() => {
// get data
const getapi = async function (list) {
console.trace('getapi')
try {
let arr = list.map((v) => {
let found = apis.find((api) => api.name === v.name);
@@ -898,7 +893,7 @@ export default defineNuxtPlugin(() => {
});
return list;
} catch (err) {
console.log(err);
console.error(err);
return "error";
}
};