23 lines
476 B
JavaScript
Executable File
23 lines
476 B
JavaScript
Executable File
module.exports = {
|
|
name: 'email-header',
|
|
asyncData(ctx) {
|
|
return {
|
|
isPreview: ctx.method === 'GET',
|
|
};
|
|
},
|
|
created() {
|
|
const embeded = [];
|
|
this.files.map(file => {
|
|
const src = this.isPreview ? file : `cid:${file}`;
|
|
embeded[file] = src;
|
|
});
|
|
this.embeded = embeded;
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
files: ['/assets/images/email-logo.png'],
|
|
};
|
|
},
|
|
};
|