From fa02197254bb791bf818e379ac3468be8dc5a894 Mon Sep 17 00:00:00 2001 From: qier222 Date: Wed, 16 Dec 2020 22:16:38 +0800 Subject: [PATCH] fix: bugs --- src/components/Navbar.vue | 1 + src/components/Player.vue | 2 +- src/views/artist.vue | 5 +++++ src/views/artistMV.vue | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 576c2f3..1e2b1f2 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -129,6 +129,7 @@ nav { display: flex; justify-content: center; text-transform: uppercase; + user-select: none; a { -webkit-app-region: no-drag; font-size: 18px; diff --git a/src/components/Player.vue b/src/components/Player.vue index 7577fe9..4ec511a 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -320,7 +320,7 @@ export default { .progress-bar { margin-top: -6px; - margin-bottom: -4px; + margin-bottom: -6px; width: 100%; } diff --git a/src/views/artist.vue b/src/views/artist.vue index f02be37..73878d4 100644 --- a/src/views/artist.vue +++ b/src/views/artist.vue @@ -118,6 +118,7 @@ import { followAArtist, } from "@/api/artist"; import { playAList } from "@/utils/play"; +import { isAccountLoggedIn } from "@/utils/auth"; import NProgress from "nprogress"; import ButtonTwoTone from "@/components/ButtonTwoTone.vue"; @@ -193,6 +194,10 @@ export default { playAList(trackIDs, this.artist.id, "artist", trackID); }, followArtist() { + if (!isAccountLoggedIn()) { + this.showToast("此操作需要登录网易云账号"); + return; + } followAArtist({ id: this.artist.id, t: this.artist.followed ? 0 : 1, diff --git a/src/views/artistMV.vue b/src/views/artistMV.vue index e7fcf01..7dcd941 100644 --- a/src/views/artistMV.vue +++ b/src/views/artistMV.vue @@ -44,7 +44,7 @@ export default { this.loadMVs(); }, loadMVs() { - artistMv({ id: this.id, limit: 100, offset: this.mvs.length + 1 }).then( + artistMv({ id: this.id, limit: 100, offset: this.mvs.length }).then( (data) => { this.mvs.push(...data.mvs); this.hasMore = data.hasMore;