master
qier222 4 years ago
parent 109098c1eb
commit fda5f99c15
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D

@ -64,6 +64,7 @@ export function dailySignin(type = 0) {
method: "post", method: "post",
params: { params: {
type, type,
timestamp: new Date().getTime(),
}, },
}); });
} }

@ -36,7 +36,7 @@ export default {
artist: "Artist", artist: "Artist",
videos: "Music Videos", videos: "Music Videos",
following: "Following", following: "Following",
follow: "Follow" follow: "Follow",
}, },
album: { album: {
released: "Released", released: "Released",

@ -33,7 +33,7 @@ export default {
artist: "歌手", artist: "歌手",
videos: "个MV", videos: "个MV",
following: "已关注", following: "已关注",
follow: "关注" follow: "关注",
}, },
album: { album: {
released: "发行于", released: "发行于",

@ -1,8 +1,8 @@
<template> <template>
<div v-show="show"> <div v-show="show">
<h1> <h1>
<img class="head" :src="user.profile.avatarUrl | resizeImage" />{{ <img class="head" :src="data.user.avatarUrl | resizeImage" />{{
user.profile.nickname data.user.nickname
}}{{ $t("library.sLibrary") }} }}{{ $t("library.sLibrary") }}
</h1> </h1>
<div class="section-one"> <div class="section-one">
@ -129,12 +129,6 @@ export default {
data() { data() {
return { return {
show: false, show: false,
user: {
profile: {
avatarUrl: "",
nickname: "",
},
},
playlists: [], playlists: [],
hasMorePlaylists: true, hasMorePlaylists: true,
likedSongsPlaylist: { likedSongsPlaylist: {
@ -153,7 +147,7 @@ export default {
created() { created() {
NProgress.start(); NProgress.start();
userDetail(this.data.user.userId).then((data) => { userDetail(this.data.user.userId).then((data) => {
this.user = data; this.$store.commit("updateData", { key: "user", value: data.profile });
}); });
}, },
activated() { activated() {

Loading…
Cancel
Save