修复前端打包问题
提取基础接口为配置
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div v-if="productImages.length > 1" class="carousel-indicators">
|
||||
<div
|
||||
v-for="(image, index) in productImages"
|
||||
v-for="(_, index) in productImages"
|
||||
:key="index"
|
||||
class="indicator"
|
||||
:class="{ active: currentImageIndex === index }"
|
||||
@@ -179,7 +179,7 @@ const checkWishlistStatus = async () => {
|
||||
|
||||
try {
|
||||
const status = await wishlistApi.checkWishlist(product.value.id)
|
||||
isFavorite.value = status as boolean
|
||||
isFavorite.value = (status as unknown as boolean)
|
||||
} catch (error) {
|
||||
console.error('检查收藏状态失败:', error)
|
||||
isFavorite.value = false
|
||||
@@ -198,7 +198,7 @@ const checkLikeStatus = async () => {
|
||||
|
||||
try {
|
||||
const status = await productLikeApi.checkLikeStatus(product.value.id)
|
||||
isLiked.value = status as boolean
|
||||
isLiked.value = (status as unknown as boolean)
|
||||
} catch (error) {
|
||||
console.error('检查点赞状态失败:', error)
|
||||
isLiked.value = false
|
||||
|
||||
Reference in New Issue
Block a user