Skip to content
Snippets Groups Projects
Commit 7f1faa42 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

knep for at "source" ikke endres når ny side lastes

parent 6f7bbb81
No related branches found
No related tags found
No related merge requests found
...@@ -24,10 +24,15 @@ export default { ...@@ -24,10 +24,15 @@ export default {
}, },
dictionary: String dictionary: String
}, },
data: function() {
return {
path: this.$route.fullPath
}
},
computed: { computed: {
unparsed: function(){ unparsed: function(){
let lang = this.dictionary let lang = this.dictionary
let path = this.$route.fullPath let path = this.path
return this.body.items.map( return this.body.items.map(
function(item){ function(item){
if (item.type_ == 'usage') return {type: item.type_, html: item.text, tag: 'mark'} if (item.type_ == 'usage') return {type: item.type_, html: item.text, tag: 'mark'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment