Update AppDocumentation.vue

pull/3455/head
Tuğçe Küçükoğlu 2022-12-28 15:48:09 +03:00
parent 5f54981b50
commit b13035bb4d
1 changed files with 2 additions and 2 deletions

View File

@ -16,13 +16,13 @@ export default {
component: null, component: null,
github: { github: {
type: String, type: String,
default: 'index.vue' default: 'index'
} }
}, },
viewGithubListener: null, viewGithubListener: null,
mounted() { mounted() {
this.viewGithubListener = () => { this.viewGithubListener = () => {
window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github, '_blank'); window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github + '.vue', '_blank');
}; };
EventBus.on('view-github', this.viewGithubListener); EventBus.on('view-github', this.viewGithubListener);