Commit 53c2dc43 authored by pete谢兆麟's avatar pete谢兆麟

设置默认model

parent 550d2345
......@@ -44,6 +44,7 @@ extension YHHKEventViewController {
self.sectionView.type = 1
self.sectionView.dataSource = self.homeViewModel.hkList ?? []
guard let model = self.homeViewModel.hkList?.first, let urlString = model.list.first else { return }
self.model = model
let url = NSURL(string: urlString)
// 创建请求
let request = NSURLRequest(url: url! as URL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment