修改bug
This commit is contained in:
@@ -138,9 +138,9 @@ export default {
|
||||
const { actual, target, progress } = this.itemList[index];
|
||||
|
||||
// 新增条件:如果实际值、预算值和进度都为0,则显示绿色
|
||||
if (actual === 0 && target === 0 && progress === 0) {
|
||||
return "rgba(98, 213, 180, 1)"; // 绿色
|
||||
}
|
||||
// if (actual === 0 && target === 0 && progress === 0) {
|
||||
// return "rgba(98, 213, 180, 1)"; // 绿色
|
||||
// }
|
||||
|
||||
// 原有的通用判断逻辑
|
||||
return progress >= 100
|
||||
|
||||
Reference in New Issue
Block a user