优化
This commit is contained in:
parent
99dbac1622
commit
0ce6fd93f7
@ -15,6 +15,8 @@ class VPHomeBannerContentCell: VPHomeItemContentCell {
|
|||||||
|
|
||||||
override var item: VPHomeModuleItem? {
|
override var item: VPHomeModuleItem? {
|
||||||
didSet {
|
didSet {
|
||||||
|
if item == oldValue { return }
|
||||||
|
|
||||||
pageControl.count = item?.list?.count ?? 0
|
pageControl.count = item?.list?.count ?? 0
|
||||||
bannerView.reloadData()
|
bannerView.reloadData()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user