Destruct resource.title aswell
This commit is contained in:
@@ -56,9 +56,9 @@ export default {
|
|||||||
},
|
},
|
||||||
async createCopyUrl(resource) {
|
async createCopyUrl(resource) {
|
||||||
try {
|
try {
|
||||||
const { path } = resource
|
const { path, title } = resource
|
||||||
await this.$copyText(`https://webgems.io${path}`)
|
await this.$copyText(`https://webgems.io${path}`)
|
||||||
this.onToggle(resource.title)
|
this.onToggle(title)
|
||||||
this.$router.push(path)
|
this.$router.push(path)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user