FRONT правки
Правки фронта
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<div v-if="card.assignee" class="assignee">
|
||||
<img
|
||||
v-if="isAvatarUrl(card.assignee)"
|
||||
:src="card.assignee"
|
||||
:src="getFullUrl(card.assignee)"
|
||||
alt="avatar"
|
||||
class="assignee-img"
|
||||
/>
|
||||
@@ -53,6 +53,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, onUpdated } from 'vue'
|
||||
import { getFullUrl } from '../api'
|
||||
|
||||
const props = defineProps({
|
||||
card: Object,
|
||||
@@ -143,7 +144,7 @@ const daysLeftText = computed(() => {
|
||||
})
|
||||
|
||||
const isAvatarUrl = (value) => {
|
||||
return value && (value.startsWith('http://') || value.startsWith('https://'))
|
||||
return value && (value.startsWith('http://') || value.startsWith('https://') || value.startsWith('/'))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user