From 7f1faa422f7c615029e3d98707aa5158e5beb238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Mon, 25 Jan 2021 11:14:35 +0100 Subject: [PATCH] =?UTF-8?q?knep=20for=20at=20"source"=20ikke=20endres=20n?= =?UTF-8?q?=C3=A5r=20ny=20side=20lastes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DefElement.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/DefElement.vue b/src/components/DefElement.vue index a83ed49..67bb56f 100644 --- a/src/components/DefElement.vue +++ b/src/components/DefElement.vue @@ -24,10 +24,15 @@ export default { }, dictionary: String }, + data: function() { + return { + path: this.$route.fullPath + } + }, computed: { unparsed: function(){ let lang = this.dictionary - let path = this.$route.fullPath + let path = this.path return this.body.items.map( function(item){ if (item.type_ == 'usage') return {type: item.type_, html: item.text, tag: 'mark'} -- GitLab