Browse Source

修复视图目录名未小写的bug

灰大狼 6 years ago
parent
commit
d154e79e2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/command/Crud.php

+ 1 - 1
application/admin/command/Crud.php

@@ -370,7 +370,7 @@ class Crud extends Command
         //视图文件
         $viewArr = $controllerArr;
         array_unshift($viewArr, 'view');
-        $viewDir = $adminPath . implode(DS, $viewArr) . DS;
+        $viewDir = $adminPath . strtolower(implode(DS, $viewArr)) . DS;
 
         //最终将生成的文件路径
         $javascriptFile = ROOT_PATH . 'public' . DS . 'assets' . DS . 'js' . DS . 'backend' . DS . $controllerBaseName . '.js';