Commit 48f209d403f5e30fdd368fb07474836ca03edcef

Authored by boyang
1 parent 5010e9d9

fix: 修改psize

pages/products/detail/[id]/index.vue
@@ -69,7 +69,7 @@ newData.productimageliststore = newData?.productimageliststore.map( @@ -69,7 +69,7 @@ newData.productimageliststore = newData?.productimageliststore.map(
69 (item: ProductImage) => ({ 69 (item: ProductImage) => ({
70 ...item, 70 ...item,
71 // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}` 71 // url: `http://112.74.45.244:8100/api/show/image?fileKey=${item.fileKey}`
72 - url: `/api/show/image?fileKey=${item.fileKey}&psize=p256`, 72 + url: `/api/show/image?fileKey=${item.fileKey}&psize=p512`,
73 }) 73 })
74 ); 74 );
75 info.value = { ...newData }; 75 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;