2019-01-24 14:03:01 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'report-header',
|
|
|
|
created() {
|
2019-02-05 06:58:05 +00:00
|
|
|
if (this.locale)
|
|
|
|
this.$i18n.locale = this.locale;
|
|
|
|
|
2019-01-24 14:03:01 +00:00
|
|
|
const embeded = [];
|
|
|
|
this.files.map(file => {
|
|
|
|
embeded[file] = `file://${__dirname + file}`;
|
|
|
|
});
|
|
|
|
this.embeded = embeded;
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
files: ['/assets/images/report-logo.svg'],
|
|
|
|
};
|
|
|
|
},
|
2019-02-05 06:58:05 +00:00
|
|
|
props: ['locale']
|
2019-01-24 14:03:01 +00:00
|
|
|
};
|