商城bug修复
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user