mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: bugs
This commit is contained in:
parent
6b3c0383bc
commit
fa02197254
4 changed files with 8 additions and 2 deletions
|
|
@ -129,6 +129,7 @@ nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
user-select: none;
|
||||||
a {
|
a {
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ export default {
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
margin-top: -6px;
|
margin-top: -6px;
|
||||||
margin-bottom: -4px;
|
margin-bottom: -6px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ import {
|
||||||
followAArtist,
|
followAArtist,
|
||||||
} from "@/api/artist";
|
} from "@/api/artist";
|
||||||
import { playAList } from "@/utils/play";
|
import { playAList } from "@/utils/play";
|
||||||
|
import { isAccountLoggedIn } from "@/utils/auth";
|
||||||
import NProgress from "nprogress";
|
import NProgress from "nprogress";
|
||||||
|
|
||||||
import ButtonTwoTone from "@/components/ButtonTwoTone.vue";
|
import ButtonTwoTone from "@/components/ButtonTwoTone.vue";
|
||||||
|
|
@ -193,6 +194,10 @@ export default {
|
||||||
playAList(trackIDs, this.artist.id, "artist", trackID);
|
playAList(trackIDs, this.artist.id, "artist", trackID);
|
||||||
},
|
},
|
||||||
followArtist() {
|
followArtist() {
|
||||||
|
if (!isAccountLoggedIn()) {
|
||||||
|
this.showToast("此操作需要登录网易云账号");
|
||||||
|
return;
|
||||||
|
}
|
||||||
followAArtist({
|
followAArtist({
|
||||||
id: this.artist.id,
|
id: this.artist.id,
|
||||||
t: this.artist.followed ? 0 : 1,
|
t: this.artist.followed ? 0 : 1,
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ export default {
|
||||||
this.loadMVs();
|
this.loadMVs();
|
||||||
},
|
},
|
||||||
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) => {
|
(data) => {
|
||||||
this.mvs.push(...data.mvs);
|
this.mvs.push(...data.mvs);
|
||||||
this.hasMore = data.hasMore;
|
this.hasMore = data.hasMore;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue