Commit 30129831820019236f96be0e47eea465fdcb3d43
1 parent
a370a046
fix: 修改psize
Showing
2 changed files
with
2 additions
and
2 deletions
pages/products/detail/[id]/index.vue
@@ -68,7 +68,7 @@ newData.productimageliststore = newData?.productimageliststore.map( | @@ -68,7 +68,7 @@ newData.productimageliststore = newData?.productimageliststore.map( | ||
68 | (item: ProductImage) => ({ | 68 | (item: ProductImage) => ({ |
69 | ...item, | 69 | ...item, |
70 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}` | 70 | // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}` |
71 | - url: `/api/show/image?fileKey=${item.fileKey}&psize=p256`, | 71 | + url: `/api/show/image?fileKey=${item.fileKey}&psize=p512`, |
72 | }) | 72 | }) |
73 | ); | 73 | ); |
74 | info.value = { ...newData }; | 74 | info.value = { ...newData }; |
stores/product_list.ts
@@ -32,7 +32,7 @@ export const useProductListStore = defineStore("productList", () => { | @@ -32,7 +32,7 @@ export const useProductListStore = defineStore("productList", () => { | ||
32 | imgList: JSON.parse( | 32 | imgList: JSON.parse( |
33 | record.productimageliststore as unknown as string | 33 | record.productimageliststore as unknown as string |
34 | ).map((item: ProductImage) => ({ | 34 | ).map((item: ProductImage) => ({ |
35 | - url: `/api/show/image?fileKey=${item.fileKey}&psize=p256`, | 35 | + url: `/api/show/image?fileKey=${item.fileKey}&psize=p512`, |
36 | })), | 36 | })), |
37 | })) || []; | 37 | })) || []; |
38 | total.value = data.value?.data?.total || 0; | 38 | total.value = data.value?.data?.total || 0; |