mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
解决经验值为0时无法显示进度条的问题。
This commit is contained in:
@@ -321,23 +321,24 @@ export default {
|
|||||||
if(res.result.currentUserRankingData) {
|
if(res.result.currentUserRankingData) {
|
||||||
res.result.currentUserRankingData.authorInfo={
|
res.result.currentUserRankingData.authorInfo={
|
||||||
aid: "",
|
aid: "",
|
||||||
name: "",
|
name: "
|
||||||
orgInfo: "",
|
orgInfo: "",
|
||||||
avatar: "",
|
avatar: "",
|
||||||
sex: null
|
sex: null
|
||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||||
|
|
||||||
this.experience.data = res.result.currentUserRankingData;
|
this.experience.data = res.result.currentUserRankingData;
|
||||||
if(res.result.currentUserRankingData.total) {
|
if(res.result.currentUserRankingData.total>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
||||||
}
|
}
|
||||||
if(res.result.currentUserRankingData.weeks) {
|
if(res.result.currentUserRankingData.weeks>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
||||||
}
|
}
|
||||||
if(res.result.currentUserRankingData.months) {
|
if(res.result.currentUserRankingData.months>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
||||||
}
|
}
|
||||||
if(res.result.currentUserRankingData.years) {
|
if(res.result.currentUserRankingData.years>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user