fix routing issue?
This commit is contained in:
@@ -15,10 +15,11 @@ export default {
|
||||
async createCopyUrl() {
|
||||
try {
|
||||
let currentPath = this.$router.history.current.path
|
||||
|
||||
let reference = this.createReferenceTag(this.$props.title)
|
||||
|
||||
await this.$copyText(`https://webgems.io${currentPath}?card=${reference}`)
|
||||
this.$router.push(`${currentPath}?card=${reference}`)
|
||||
await this.$copyText(`https://webgems.io${currentPath}/?card=${reference}`)
|
||||
this.$router.push(`${currentPath}/?card=${reference}`)
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
@@ -37,7 +38,7 @@ export default {
|
||||
? 'card--active'
|
||||
: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
url: 'https://learnjavascriptfast.com/'
|
||||
},
|
||||
{
|
||||
title: 'ECMAScript 6 ',
|
||||
title: 'ECMAScript 6',
|
||||
desc: 'ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009.',
|
||||
url: 'https://github.com/lukehoban/es6features#readme'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user