Browse Source

Fix the header behavior in the error page

pull/919/head
Hironsan 4 years ago
parent
commit
8ea22d0192
3 changed files with 3 additions and 1 deletions
  1. 2
      frontend/components/organisms/layout/TheHeader.vue
  2. 1
      frontend/layouts/default.vue
  3. 1
      frontend/layouts/demo.vue

2
frontend/components/organisms/layout/TheHeader.vue

@ -118,7 +118,7 @@ export default {
...mapGetters('projects', ['currentProject']), ...mapGetters('projects', ['currentProject']),
isIndividualProject() { isIndividualProject() {
return this.$route.name.startsWith('projects-id')
return this.$route.name && this.$route.name.startsWith('projects-id')
} }
}, },

1
frontend/layouts/default.vue

@ -11,6 +11,7 @@ import TheFooter from '@/components/organisms/layout/TheFooter'
import TheHeader from '@/components/organisms/layout/TheHeader' import TheHeader from '@/components/organisms/layout/TheHeader'
export default { export default {
middleware: ['check-auth'],
components: { components: {
TheFooter, TheFooter,
TheHeader TheHeader

1
frontend/layouts/demo.vue

@ -9,6 +9,7 @@
import TheHeader from '~/components/organisms/layout/TheHeader' import TheHeader from '~/components/organisms/layout/TheHeader'
export default { export default {
middleware: ['check-auth'],
components: { components: {
TheHeader TheHeader
} }

Loading…
Cancel
Save