mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-09-22 04:42:02 +08:00
feat(distribution): 更新分销等级逻辑与条件可见性
- 修改分销等级列表的文档注释,明确包含的条件。 - 在分销等级页面中引入条件可见性逻辑,确保等级规则仅在满足条件时显示。 - 优化获取分销等级的逻辑,确保正确处理和展示等级数据。
This commit is contained in:
@@ -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 : []
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user