商城bug修复

This commit is contained in:
2025-08-27 17:00:20 +08:00
parent 5847393c50
commit 9535622893
5 changed files with 276 additions and 69 deletions

View File

@@ -482,7 +482,7 @@ const truncateText = (text, maxLength) => {
//获取热销推荐商品
const getHotProducts = async () => {
try {
const {data} = await api.get('')
const {data} = await api.get('/products/hot')
hotProducts.value = data.data.products
} catch (error) {
console.log(error)
@@ -494,7 +494,7 @@ const getHotProducts = async () => {
//获取秒杀推荐商品
const getCheapProducts = async () => {
try {
const {data} = await api.get('')
const {data} = await api.get('/products/cheap')
cheapProducts.value = data.data.products
} catch (error) {
console.log(error)