29 lines
785 B
JavaScript
29 lines
785 B
JavaScript
|
module.exports = {
|
||
|
name: 'email-footer',
|
||
|
asyncData(ctx, params) {
|
||
|
return {
|
||
|
isPreview: ctx.method === 'GET',
|
||
|
};
|
||
|
},
|
||
|
created() {
|
||
|
const embeded = [];
|
||
|
this.attachments.map((attachment) => {
|
||
|
const src = this.isPreview ? attachment : `cid:${attachment}`;
|
||
|
embeded[attachment] = src;
|
||
|
});
|
||
|
this.embeded = embeded;
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
attachments: [
|
||
|
'/assets/images/facebook.png',
|
||
|
'/assets/images/twitter.png',
|
||
|
'/assets/images/youtube.png',
|
||
|
'/assets/images/pinterest.png',
|
||
|
'/assets/images/instagram.png',
|
||
|
'/assets/images/linkedin.png',
|
||
|
],
|
||
|
};
|
||
|
},
|
||
|
};
|