You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
890 B

import { getCarousel, boutiqueGoods, recommendGoods } from "@/api/Home";
export default defineStore('useHome', {
state: () => ({}),
getters: {},
actions: {
async getCarousel(params) {
let url = $globalRequestUrl({
url: getCarousel,
});
try {
const rep = await $globalRequest(url, params, { method: "GET" });
return rep;
} catch (error) {
return error;
}
},
async boutiqueGoods(params) {
let url = $globalRequestUrl({
url: boutiqueGoods,
});
try {
const rep = await $globalRequest(url, params, { method: "GET" });
return rep;
} catch (error) {
return error;
}
},
async recommendGoods(params) {
let url = $globalRequestUrl({
url: recommendGoods,
});
try {
const rep = await $globalRequest(url, params, { method: "GET" });
return rep;
} catch (error) {
return error;
}
},
},
});