解决经验值为0时无法显示进度条的问题。

This commit is contained in:
weinan2087
2022-09-30 17:48:25 +08:00
parent 1868430176
commit f595d24f18

View File

@@ -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';