Skip to content

Commit

Permalink
fix: copy song info error displays nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
AsyncFox committed Jan 7, 2024
1 parent 21eba41 commit 4ed36c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/manage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ function copySongInfo() {
useCopy(songInfo.value).then(
() => $toast.success('复制成功'),
).catch((e) => {
$toast.error(e);
if (e.message)
$toast.error(e.message);
else
$toast.error(e.toString());
toggleSongInfoOpen();
});
}
Expand Down

0 comments on commit 4ed36c0

Please sign in to comment.