refactor(头像处理): 统一使用 $getHeadImgUrl 方法生成头像 URL
This commit is contained in:
parent
c2f5443eaf
commit
fc3bd33713
|
|
@ -197,11 +197,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
headSculptureUrl() {
|
headSculptureUrl() {
|
||||||
if (this.vuex_user.HeadSculptureUrl) {
|
return this.$getHeadImgUrl(this.vuex_user.HeadSculptureUrl);
|
||||||
return this.baseUrl + "/" + this.vuex_user.HeadSculptureUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
return "/static/common/images/avatar.png";
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ export default {
|
||||||
this.imageUrl = data.headSculptureUrl;
|
this.imageUrl = data.headSculptureUrl;
|
||||||
this.imageValue = [
|
this.imageValue = [
|
||||||
{
|
{
|
||||||
url: this.baseUrl + "/" + data.headSculptureUrl,
|
url: this.$getHeadImgUrl(data.headSculptureUrl),
|
||||||
extname: "png",
|
extname: "png",
|
||||||
name: "",
|
name: "",
|
||||||
},
|
},
|
||||||
|
|
@ -251,7 +251,7 @@ export default {
|
||||||
this.imageUrl = "";
|
this.imageUrl = "";
|
||||||
this.imageValue = [
|
this.imageValue = [
|
||||||
{
|
{
|
||||||
url: "/static/common/images/avatar_default2.png",
|
url: this.$getHeadImgUrl(this.vuex_user.HeadSculptureUrl),
|
||||||
extname: "jpg",
|
extname: "jpg",
|
||||||
name: "",
|
name: "",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue