feat: add console logging for image loading and product data fetching in Product and ProductDetailPage components for improved debugging
This commit is contained in:
@@ -41,6 +41,7 @@ class Product extends Component {
|
||||
|
||||
loadImage = (bildId) => {
|
||||
|
||||
console.log('loadImagevisSocket', bildId);
|
||||
window.socketManager.emit('getPic', { bildId, size:'small' }, (res) => {
|
||||
if(res.success){
|
||||
window.smallPicCache[bildId] = URL.createObjectURL(new Blob([res.imageBuffer], { type: 'image/jpeg' }));
|
||||
|
||||
Reference in New Issue
Block a user