From 5dd00bec87e727d02ae8628fb254ab25edba167d Mon Sep 17 00:00:00 2001 From: memorydream <34763046+memorydream@users.noreply.github.com> Date: Sat, 30 Apr 2022 17:24:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=BA=86electron=E7=9A=84clipboard=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=BC=82=E5=B8=B8=20(#1582)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TrackList.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TrackList.vue b/src/components/TrackList.vue index 5289cee..a175d72 100644 --- a/src/components/TrackList.vue +++ b/src/components/TrackList.vue @@ -75,7 +75,6 @@ import { mapActions, mapMutations, mapState } from 'vuex'; import { addOrRemoveTrackFromPlaylist } from '@/api/playlist'; import { cloudDiskTrackDelete } from '@/api/user'; import { isAccountLoggedIn } from '@/utils/auth'; -const { clipboard } = require('electron'); import TrackListItem from '@/components/TrackListItem.vue'; import ContextMenu from '@/components/ContextMenu.vue'; @@ -270,7 +269,7 @@ export default { } }, copyLink() { - clipboard.writeText( + navigator.clipboard.writeText( `https://music.163.com/song?id=${this.rightClickedTrack.id}` ); this.showToast(locale.t('toast.copied'));