Sfoglia il codice sorgente

修复启用多应用后注册扩展路由会导致默认应用首页无法访问问题

jqh 4 anni fa
parent
commit
da6f0d1308
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/Application.php

+ 1 - 0
src/Application.php

@@ -81,6 +81,7 @@ class Application
 
     public function routes($pathOrCallback)
     {
+        $this->switch(static::DEFAULT);
         $this->loadRoutesFrom($pathOrCallback, static::DEFAULT);
 
         if ($apps = $this->getApps()) {