Commit 74dbc1d9ff5d9944bd1ecf60eefaac17701fcf19
1 parent
640c123208
Exists in
admin
image added
Showing
2 changed files
with
16 additions
and
8 deletions
Show diff stats
config/dev.env.js
src/components/Profile.vue
... | ... | @@ -138,6 +138,8 @@ |
138 | 138 | <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4"> |
139 | 139 | <div class="form-group floating-label"> |
140 | 140 | <label for="lname" class="lname"> Insight Logo</label> |
141 | + <img v-if="caseStudy.caseStudyDetails.intro.logoURL" style="width:40px;height: 40px;" :src="caseStudy.caseStudyDetails.intro.logoURL" | |
142 | + /> | |
141 | 143 | <input |
142 | 144 | @change="createImage('logo')" |
143 | 145 | type="file" |
... | ... | @@ -263,6 +265,8 @@ |
263 | 265 | <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4"> |
264 | 266 | <div class="form-group floating-label"> |
265 | 267 | <label for="lname" class="lname"> Author Image</label> |
268 | + <img v-if="caseStudy.caseStudyDetails.outro.authorImage[0]" style="width:40px;height: 40px;" :src="caseStudy.caseStudyDetails.outro.authorImage[0]" | |
269 | + /> | |
266 | 270 | <input |
267 | 271 | @change="createImage('outdor')" |
268 | 272 | type="file" |
... | ... | @@ -354,6 +358,8 @@ |
354 | 358 | v-if="field.fieldType == 'image'" |
355 | 359 | > |
356 | 360 | <label for="lname" class="lname"> {{ field.displayName }}</label> |
361 | + <img v-if="field.fieldValue" style="width:40px;height: 40px;" :src="field.fieldValue" | |
362 | + /> | |
357 | 363 | <input |
358 | 364 | @change="fieldcreateImage(i, j)" |
359 | 365 | type="file" |
... | ... | @@ -554,12 +560,14 @@ export default { |
554 | 560 | }) |
555 | 561 | .then((response) => { |
556 | 562 | if (type == "logo") { |
557 | - this.caseStudy.caseStudyDetails.intro.logoURL = response.data.data; | |
563 | + | |
564 | + setTimeout(() => this.caseStudy.caseStudyDetails.intro.logoURL = response.data.data, 10); | |
558 | 565 | } else if (type == "outdor") { |
559 | 566 | this.caseStudy.caseStudyDetails.outro.authorImage = []; |
560 | - this.caseStudy.caseStudyDetails.outro.authorImage.push( | |
567 | + setTimeout(() => this.caseStudy.caseStudyDetails.outro.authorImage.push( | |
561 | 568 | response.data.data |
562 | - ); | |
569 | + ), 10); | |
570 | + | |
563 | 571 | } |
564 | 572 | |
565 | 573 | console.log(response.data.data); |
... | ... | @@ -604,8 +612,10 @@ export default { |
604 | 612 | }, |
605 | 613 | }) |
606 | 614 | .then((response) => { |
607 | - this.caseStudy.slides[i].metaData.fields[j].fieldValue = | |
608 | - response.data.data; | |
615 | + setTimeout(() => this.caseStudy.slides[i].metaData.fields[j].fieldValue = | |
616 | + response.data.data, 10); | |
617 | + | |
618 | + | |
609 | 619 | console.log(response.data.data); |
610 | 620 | console.log(this.caseStudy); |
611 | 621 | }) | ... | ... |