salix/print/report/report-header/index.js

20 lines
431 B
JavaScript
Raw Normal View History

module.exports = {
name: 'report-header',
created() {
2019-02-05 06:58:05 +00:00
if (this.locale)
this.$i18n.locale = this.locale;
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']
};