页面
Some checks are pending
Auto Merge Main to Other Branches / Merge main into i18n (push) Waiting to run
Auto Merge Main to Other Branches / Merge main into base-sard-ui (push) Waiting to run

This commit is contained in:
sjeam 2025-09-10 15:08:28 +08:00
parent 60ec7f93cc
commit c62e30f847
2 changed files with 5 additions and 3 deletions

View File

@ -453,7 +453,7 @@ export default defineComponent({
},
async onLoad(option) {
this.getBanner()
this.getProduct(38)
this.getProduct(1)
this.getArticle()
},
methods: {

View File

@ -24,8 +24,10 @@ export interface IFooItem {
// }
/** GET 请求 */
export function getProductAPI(cate_pid: string) {
return http.get<IFooItem>(getUrlCrmebProxy() + '/api/product/spu/lst', { cate_pid })
export function getProductAPI(labels: string) {
// return http.get<IFooItem>(getUrlCrmebProxy() + '/api/product/spu/lst', { cate_pid })
//根据标签获取产品
return http.get<IFooItem>(getUrlCrmebProxy() + '/api/product/spu/labels', { labels: labels })
}
// 用户中心
export function getInfoAPI() {