|
|
@ -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() {
|
|
|
|