mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-07 11:20:17 +00:00
rewrote default image function to return something
This commit is contained in:
parent
6067c9be08
commit
6220f2d69a
@ -6,7 +6,7 @@
|
|||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="flex flex-row items-center flex-shrink-0 gap-3">
|
<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="">
|
<div class="">
|
||||||
@ -63,12 +63,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getImgUrl() {
|
getImgUrl() {
|
||||||
|
return bUrl+this.personality.avatar
|
||||||
if (this.personality.avatar) {
|
},
|
||||||
return bUrl+this.personality.avatar
|
defaultImg(event){
|
||||||
|
event.target.src = botImgPlaceholder
|
||||||
}
|
|
||||||
return botImgPlaceholder;
|
|
||||||
},
|
},
|
||||||
toggleSelected() {
|
toggleSelected() {
|
||||||
this.onSelected(this)
|
this.onSelected(this)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user