|
|
|
@ -169,6 +169,9 @@
|
|
|
|
|
<div class="item" @click="copyUrl(artist.id)">{{
|
|
|
|
|
$t('contextMenu.copyUrl')
|
|
|
|
|
}}</div>
|
|
|
|
|
<div class="item" @click="openInBrowser(artist.id)">{{
|
|
|
|
|
$t('contextMenu.openInBrowser')
|
|
|
|
|
}}</div>
|
|
|
|
|
</ContextMenu>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -339,7 +342,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
copyUrl(id) {
|
|
|
|
|
let showToast = this.showToast;
|
|
|
|
|
this.$copyText('https://music.163.com/#/artist?id=' + id)
|
|
|
|
|
this.$copyText(`https://music.163.com/#/artist?id=${id}`)
|
|
|
|
|
.then(function () {
|
|
|
|
|
showToast(locale.t('toast.copied'));
|
|
|
|
|
})
|
|
|
|
@ -347,6 +350,10 @@ export default {
|
|
|
|
|
showToast(`${locale.t('toast.copyFailed')}${error}`);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
openInBrowser(id) {
|
|
|
|
|
const url = `https://music.163.com/#/artist?id=${id}`;
|
|
|
|
|
window.open(url);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|