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