UNPKG

@shagital/adonisjs-crud-generator

Version:

Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database

24 lines (19 loc) 464 B
function getTitle (vm) { const { title } = vm.$options return title; } export default { mounted () { let title = getTitle(this) if(Array.isArray(title)) { let computedTItle = ''; for(let key of title) { computedTItle += `${this.$t(key)} | ` }; title = computedTItle; } if (title) { document.title = `${title}${this.$t('admin_dashboard_title')} | ${this.$appName}` } } }