- aggiornato carrello e bottoni sul catalogo
This commit is contained in:
@@ -388,6 +388,16 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const mypage = state.mypage.find((page) => `${page._id}` === idpage);
|
||||
return mypage;
|
||||
},
|
||||
|
||||
getMyPagesOptionsTemplate: (state: IGlobalState) => (): any[] => {
|
||||
return state.mypage
|
||||
.filter((page: IMyPage) => page.isTemplate === true)
|
||||
.map((page: IMyPage) => ({
|
||||
label: page.title,
|
||||
value: page._id,
|
||||
}));
|
||||
},
|
||||
|
||||
getPathByIdPage:
|
||||
(state: IGlobalState) =>
|
||||
(idpage: string): string => {
|
||||
@@ -2073,8 +2083,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
Products.publishers_sort_qty = [...res.data.publishers];
|
||||
Products.publishers_sort_qty.sort((a, b) => b.quanti - a.quanti);
|
||||
|
||||
// console.table(Products.publishers)
|
||||
// console.table(Products.publishers_sort_qty)
|
||||
// console.table(Products.publishers)
|
||||
// console.table(Products.publishers_sort_qty)
|
||||
|
||||
this.gasordines = res.data.gasordines ? [...res.data.gasordines] : [];
|
||||
this.scontisticas = res.data.scontisticas ? [...res.data.scontisticas] : [];
|
||||
@@ -2595,7 +2605,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('getServerHost', myserv);
|
||||
// console.log('getServerHost', myserv);
|
||||
|
||||
return myserv;
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user