mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 00:23:52 +00:00
rewrote default image function to return something
This commit is contained in:
parent
6067c9be08
commit
6220f2d69a
@ -6,7 +6,7 @@
|
||||
</h3>
|
||||
|
||||
<div class="flex flex-row items-center flex-shrink-0 gap-3">
|
||||
<img :src="getImgUrl()" class="w-14 h-14 rounded-full object-fill text-red-700">
|
||||
<img :src="getImgUrl()" @error="defaultImg($event)" class="w-14 h-14 rounded-full object-fill text-red-700">
|
||||
|
||||
|
||||
<div class="">
|
||||
@ -63,12 +63,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getImgUrl() {
|
||||
|
||||
if (this.personality.avatar) {
|
||||
return bUrl+this.personality.avatar
|
||||
|
||||
}
|
||||
return botImgPlaceholder;
|
||||
return bUrl+this.personality.avatar
|
||||
},
|
||||
defaultImg(event){
|
||||
event.target.src = botImgPlaceholder
|
||||
},
|
||||
toggleSelected() {
|
||||
this.onSelected(this)
|
||||
|
Loading…
x
Reference in New Issue
Block a user