Skip to content

Commit

Permalink
1. 更新API项目到最新版本,解决频繁修改密码、封号的问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
stark81 committed Oct 7, 2024
1 parent 32aa905 commit 4ad742c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@fastify/cookie": "^9.3.1",
"@fastify/static": "^7.0.4",
"@unblockneteasemusic/rust-napi": "^0.4.0",
"NeteaseCloudMusicApi": "4.15.6",
"NeteaseCloudMusicApi": "^4.15.6",
"axios": "^0.26.1",
"change-case": "^4.1.2",
"cli-color": "^2.0.0",
Expand Down
13 changes: 7 additions & 6 deletions src/components/TrackListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@
<svg-icon
icon-class="heart"
:style="{
visibility:
focus && !isLiked && !(track.isLocal || false)
? 'visible'
: 'hidden',
visibility: focus && !isLiked ? 'visible' : 'hidden',
}"
></svg-icon>
<svg-icon v-show="isLiked" icon-class="heart-solid"></svg-icon>
Expand All @@ -104,7 +101,7 @@
<script>
import ArtistsInLine from '@/components/ArtistsInLine.vue';
import ExplicitSymbol from '@/components/ExplicitSymbol.vue';
import { mapState } from 'vuex';
import { mapActions, mapState } from 'vuex';
import { isNil } from 'lodash';
export default {
Expand Down Expand Up @@ -266,6 +263,7 @@ export default {
},
methods: {
...mapActions(['showToast']),
goToAlbum() {
if (this.track.al.id === 0) return;
this.$router.push({ path: '/album/' + this.track?.al?.id });
Expand All @@ -274,7 +272,10 @@ export default {
this.$parent.playThisList(this.track?.id);
},
likeThisSong() {
if (this.track?.isLocal && !this.track?.matched) return;
if (this.track?.isLocal && !this.track?.matched) {
this.showToast('本地歌曲,无法操作');
return;
}
this.$parent.likeATrack(this.track?.id);
},
getPublishTime(date) {
Expand Down
5 changes: 3 additions & 2 deletions src/components/VirtualScroll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script>
import { mapState, mapMutations } from 'vuex';
import { mapState, mapMutations, mapActions } from 'vuex';
export default {
name: 'VirtualScroll',
Expand Down Expand Up @@ -67,7 +67,7 @@ export default {
};
},
computed: {
...mapState(['player']),
...mapState(['player', 'liked']),
_listData() {
return this.list.reduce((init, cur, index) => {
init.push({
Expand Down Expand Up @@ -191,6 +191,7 @@ export default {
}
},
methods: {
...mapActions(['likeATrack']),
observer() {
const observer = new IntersectionObserver(
entries => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2791,10 +2791,10 @@
resolved "https://mirrors.cloud.tencent.com/npm/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==

[email protected]:
version "4.15.6"
resolved "https://mirrors.cloud.tencent.com/npm/NeteaseCloudMusicApi/-/NeteaseCloudMusicApi-4.15.6.tgz#c6339b33ec3888887cdce7e2ce6f3553503b1b14"
integrity sha512-MNd5TUUNRCTeVsEZ+ogag5DZbIUWLDKNdNW29+aIi8NN9IXALWe5OBH22GJsf7idpYlVo2usORBM4so2CnwdkA==
NeteaseCloudMusicApi@^4.15.6:
version "4.23.1"
resolved "https://mirrors.cloud.tencent.com/npm/NeteaseCloudMusicApi/-/NeteaseCloudMusicApi-4.23.1.tgz#2479addbb02d9224a0aab3309a970dd51dfdb32e"
integrity sha512-knjTB2g7CcogBG9yaxj37BoazBH8a5r0kJgFfLo1JJngdUhRapk0z20XOAtG8mrSoFd6yxW8fimFqcL5lbmwEw==
dependencies:
axios "^1.2.2"
crypto-js "^4.2.0"
Expand Down

0 comments on commit 4ad742c

Please sign in to comment.