Commit b5eb7d81 authored by David黄金龙's avatar David黄金龙

处理 2处bug

parent 96528b79
......@@ -55,14 +55,17 @@ class YHImageResultViewController: YHBaseViewController {
YHHUD.hide()
if let block = self.successHandlerBlock {
block(model?.content ?? "")
let mineVC = YHWorkExperienceViewController()
var targetVC : UIViewController!
var targetVC : UIViewController?
for controller in self.navigationController!.viewControllers {
if controller.isKind(of: mineVC.classForCoder) {
if controller.isKind(of: YHWorkExperienceViewController.self) {
targetVC = controller
}
if controller.isKind(of: YHWorkIntroductionViewController.self) {
targetVC = controller
}
}
if targetVC != nil {
if let targetVC = targetVC {
self.navigationController?.popToViewController(targetVC, animated: true)
}
}
......
......@@ -253,6 +253,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
guard let self = self else { return }
self.dataSource.project_highlights = result
self.messageTextField.text = result
self.isShowPromptsLabel()
}
self.navigationController?.pushViewController(clipperVC, animated: true)
}
......
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