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:
@@ -277,7 +277,6 @@ export function experienceValue(total) {
|
||||
data.start = 'LV1';
|
||||
data.end = 'LV2';
|
||||
data.endValue = 600;
|
||||
if(total == 0){total = 1;}
|
||||
data.percentage = parseFloat((total / 600) * 100);
|
||||
} else if(total > 300 || total == 300 || total < 600){
|
||||
data.start = 'LV2';
|
||||
|
||||
Reference in New Issue
Block a user