fix: bugs

This commit is contained in:
qier222 2020-10-30 14:58:02 +08:00
parent 109098c1eb
commit fda5f99c15
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
4 changed files with 6 additions and 11 deletions

View file

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