fix routing issue?
This commit is contained in:
@@ -15,10 +15,11 @@ export default {
|
|||||||
async createCopyUrl() {
|
async createCopyUrl() {
|
||||||
try {
|
try {
|
||||||
let currentPath = this.$router.history.current.path
|
let currentPath = this.$router.history.current.path
|
||||||
|
|
||||||
let reference = this.createReferenceTag(this.$props.title)
|
let reference = this.createReferenceTag(this.$props.title)
|
||||||
|
|
||||||
await this.$copyText(`https://webgems.io${currentPath}?card=${reference}`)
|
await this.$copyText(`https://webgems.io${currentPath}/?card=${reference}`)
|
||||||
this.$router.push(`${currentPath}?card=${reference}`)
|
this.$router.push(`${currentPath}/?card=${reference}`)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
@@ -37,7 +38,7 @@ export default {
|
|||||||
? 'card--active'
|
? 'card--active'
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user