From 215110c659c80e11fdb7889fd31d9d9b500f4c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 22 Dec 2022 15:49:31 +0300 Subject: [PATCH] refactor --- layouts/AppDocumentation.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/AppDocumentation.vue b/layouts/AppDocumentation.vue index ddda5ddf4..8136496d5 100644 --- a/layouts/AppDocumentation.vue +++ b/layouts/AppDocumentation.vue @@ -16,13 +16,13 @@ export default { component: null, github: { type: String, - default: 'index' + default: 'index.vue' } }, viewGithubListener: null, mounted() { this.viewGithubListener = () => { - window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github + '.vue', '_blank'); + window.open('https://github.com/primefaces/primevue/blob/master/pages/' + this.name.toLowerCase().replaceAll('demo', '/') + this.github, '_blank'); }; EventBus.on('view-github', this.viewGithubListener); },