mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
24 lines
498 B
JavaScript
24 lines
498 B
JavaScript
import InternalPage from '~/components/_new/features/InternalPage/InternalPage.vue'
|
|
|
|
export function internalPageMixins(pageParams) {
|
|
return {
|
|
layout: 'basic',
|
|
components: {
|
|
InternalPage,
|
|
},
|
|
data() {
|
|
return { pageParams }
|
|
},
|
|
head() {
|
|
return {
|
|
title: this.$t(this.pageParams.internalPage.headTitleIdent),
|
|
}
|
|
},
|
|
created() {
|
|
if (!this.pageParams.isInternalPage) {
|
|
this.pageParams.redirectToPage(this)
|
|
}
|
|
},
|
|
}
|
|
}
|