mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
19 lines
401 B
JavaScript
19 lines
401 B
JavaScript
import InternalPage from '~/components/_new/features/InternalPage/InternalPage.vue'
|
|
|
|
export function internalPageMixins(pageParams) {
|
|
return {
|
|
layout: 'basic',
|
|
components: {
|
|
InternalPage,
|
|
},
|
|
data() {
|
|
return { pageParams }
|
|
},
|
|
created() {
|
|
if (!this.pageParams.isInternalPage) {
|
|
window.location.href = this.pageParams.externalLink
|
|
}
|
|
},
|
|
}
|
|
}
|