mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
解决经验值为0的情况。
This commit is contained in:
@@ -327,7 +327,9 @@ export default {
|
||||
sex: null
|
||||
}
|
||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||
|
||||
if(res.result.currentUserRankingData.weeks == undefined){res.result.currentUserRankingData.weeks = 0;}
|
||||
if(res.result.currentUserRankingData.months == undefined){res.result.currentUserRankingData.months = 0;}
|
||||
if(res.result.currentUserRankingData.years == undefined){res.result.currentUserRankingData.years = 0;}
|
||||
this.experience.data = res.result.currentUserRankingData;
|
||||
if(res.result.currentUserRankingData.total>=0) {
|
||||
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
||||
|
||||
Reference in New Issue
Block a user