fix [P-246]: Дефолтная картинка-заглушка
This commit is contained in:
1 parent
bc509dff91
commit
8fcf0e35ea
1 file changed
+8
-2
@@ -27,7 +27,12 @@
|
||||
>
|
||||
<v-row class="pa-4">
|
||||
<v-col cols="2" class="justify-center my-auto">
|
||||
<v-img :src="cardValue.file" class="mx-auto rounded-lg" max-height="120" contain />
|
||||
<v-img
|
||||
:src="cardValue.file || defaultImage"
|
||||
class="mx-auto rounded-lg"
|
||||
max-height="120"
|
||||
contain
|
||||
/>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-grow-1">
|
||||
<div class="d-flex flex-column justify-center flex-grow-1">
|
||||
@@ -74,6 +79,7 @@
|
||||
import moment from 'moment';
|
||||
import { declOfNum } from '@/utils/universal_functions';
|
||||
import { baseURL } from '@/utils/axios-api';
|
||||
import defaultImage from '@/assets/emblem.png';
|
||||
import { ref, computed } from 'vue';
|
||||
|
||||
export default {
|
||||
@@ -156,7 +162,7 @@ export default {
|
||||
return text.replace(/\r?\n/g, '<br>');
|
||||
};
|
||||
|
||||
return { search, searchTest, momenter, activeTabIcon, baseURL, formatDescription };
|
||||
return { search, searchTest, momenter, activeTabIcon, baseURL, formatDescription, defaultImage };
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user