Skip to content

Commit 004df77

Browse files
committed
commit: update
1 parent 8e404f3 commit 004df77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ModuleRoute/MRModule.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import UIKit
99

1010
// 路由处理结果枚举
1111
public enum RouteResult {
12-
case viewController(UIViewController) // 返回控制器
12+
case navigator(UIViewController) // 返回控制器
1313
case handler(() -> Void) // 执行闭包
1414
case service(Any) // 返回服务实例
1515
case value(Any) // 返回值
@@ -27,7 +27,7 @@ extension MRModule {
2727
// 如果路由处理结果为 .viewController,则返回构造的目标控制器,否则返回 nil
2828
func build(from route: MRRoute) -> UIViewController? {
2929
switch handle(route: route) {
30-
case .viewController(let vc):
30+
case .navigator(let vc):
3131
return vc
3232
default:
3333
return nil

0 commit comments

Comments
 (0)