Destruct resource.title aswell

This commit is contained in:
Unknown
2019-08-13 22:01:11 -05:00
parent 0a8c7ebc28
commit 77129a7689

View File

@@ -56,9 +56,9 @@ export default {
},
async createCopyUrl(resource) {
try {
const { path } = resource
const { path, title } = resource
await this.$copyText(`https://webgems.io${path}`)
this.onToggle(resource.title)
this.onToggle(title)
this.$router.push(path)
} catch (e) {
console.error(e);