nuxt-community / nuxt-class-component

ES / TypeScript decorator for class-style Nuxt/Vue components
MIT License
113 stars 15 forks source link

layouts/default middleware is not working #24

Closed jackie-park closed 5 years ago

jackie-park commented 5 years ago

// my default layout @Component({ components: {}, middleware: ['login'] }) export default class extends Vue {}

// .nuxt/server if (layout.middleware) midd = midd.concat(layout.middleware)

I think it should be compile 'layout.options.middleware'

This question is available on Nuxt community (#c14)
ghost commented 5 years ago

This issue as been imported as question since it does not respect nuxt-class-component issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/nuxt-class-component/issues/c14.