feat:修改前端生成目录
This commit is contained in:
@@ -95,8 +95,10 @@ class FrontForm extends Creator
|
|||||||
*/
|
*/
|
||||||
public function getFile(): string
|
public function getFile(): string
|
||||||
{
|
{
|
||||||
|
$path = config('catch.views_path').lcfirst($this->module).DIRECTORY_SEPARATOR;
|
||||||
|
|
||||||
// TODO: Implement getFile() method.
|
// TODO: Implement getFile() method.
|
||||||
return CatchAdmin::makeDir(CatchAdmin::getModuleViewsPath($this->module).Str::of($this->controller)->replace('Controller', '')->lcfirst()).DIRECTORY_SEPARATOR.'create.vue';
|
return CatchAdmin::makeDir($path.Str::of($this->controller)->replace('Controller', '')->lcfirst()).DIRECTORY_SEPARATOR.'create.vue';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -114,7 +114,9 @@ class FrontTable extends Creator
|
|||||||
public function getFile(): string
|
public function getFile(): string
|
||||||
{
|
{
|
||||||
// TODO: Implement getFile() method.
|
// TODO: Implement getFile() method.
|
||||||
return CatchAdmin::makeDir(CatchAdmin::getModuleViewsPath($this->module).Str::of($this->controller)->replace('Controller', '')->lcfirst()).DIRECTORY_SEPARATOR.'index.vue';
|
$path = config('catch.views_path').lcfirst($this->module).DIRECTORY_SEPARATOR;
|
||||||
|
|
||||||
|
return CatchAdmin::makeDir($path.Str::of($this->controller)->replace('Controller', '')->lcfirst()).DIRECTORY_SEPARATOR.'index.vue';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user