WIP Подтянула картинки из стора

This commit is contained in:
Daria Golova
2023-04-17 18:02:07 +03:00
parent 83b72e50f1
commit c63c36ba3a
5 changed files with 106 additions and 46 deletions

View File

@@ -88,9 +88,12 @@ export default {
computed: {
value: {
get() {
return this.type === "date"
? this.modelValue?.toISOString().split("T")[0]
: this.modelValue;
if (this.type === "date") {
return this.modelValue
? this.modelValue?.toISOString().split("T")[0]
: null;
}
return this.modelValue;
},
set(value) {
this.type === "date"

View File

@@ -57,7 +57,7 @@ export default {
},
},
created() {
if (this.value.photo) {
if (this.value?.photo) {
this.image = this.value.photo;
}
},