feat(distribution): 更新分销等级逻辑与条件可见性

- 修改分销等级列表的文档注释,明确包含的条件。
- 在分销等级页面中引入条件可见性逻辑,确保等级规则仅在满足条件时显示。
- 优化获取分销等级的逻辑,确保正确处理和展示等级数据。
This commit is contained in:
田香琪
2026-09-11 12:59:00 +08:00
parent ef3401a9e4
commit f6d4fac35e
3 changed files with 8 additions and 4 deletions

View File

@@ -330,7 +330,8 @@ function fetchDistribution() {
function fetchGrades() {
return getDistributionGrades().then((res) => {
gradeList.value = res.data?.result || []
const grades = res.data?.result?.grades
gradeList.value = Array.isArray(grades) ? grades : []
})
}