diff --git a/src/components/header/app-header.vue b/src/components/header/app-header.vue index 3c0a5cad..fec02511 100644 --- a/src/components/header/app-header.vue +++ b/src/components/header/app-header.vue @@ -21,9 +21,10 @@ Logo de compañía @@ -202,6 +203,7 @@ function data() { isSearchMobile: false, scrolled: false, searchText: null, + defaultImage: '/static/img/home-defaul.svg', }; } @@ -249,6 +251,12 @@ export default { this.searchProduct(''); this.goTo('page-home'); }, + handleImageError(event) { + const imgElement = event.target; + imgElement.src = this.defaultImage; + imgElement.style.width = '30px'; + imgElement.style.height = '40px'; + }, }, mounted, props: { diff --git a/static/img/home-defaul.svg b/static/img/home-defaul.svg new file mode 100644 index 00000000..70b532d4 --- /dev/null +++ b/static/img/home-defaul.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + \ No newline at end of file