更新 app/common/service/generator/core/VueIndexGenerator.php
This commit is contained in:
parent
56c6b3fc7c
commit
eac4232ca4
@ -59,6 +59,7 @@ class VueIndexGenerator extends BaseGenerator implements GenerateInterface
|
||||
$this->getQueryParamsContent(),
|
||||
$this->getDictDataContent(),
|
||||
$this->getPkContent(),
|
||||
$this->getApiDirContent(),
|
||||
$this->getTableName(),
|
||||
$this->getPermsContent(),
|
||||
$this->getPermsContent('edit'),
|
||||
@ -257,7 +258,11 @@ class VueIndexGenerator extends BaseGenerator implements GenerateInterface
|
||||
*/
|
||||
public function getModuleGenerateDir()
|
||||
{
|
||||
$dir = dirname(app()->getRootPath()) . '/admin/src/views/' . $this->getLowerTableName() . '/';
|
||||
$dir = dirname(app_path()) . '/admin/src/views/';
|
||||
if (!empty($this->classDir) && $this->classDir != $this->getLowerTableName()) {
|
||||
$dir .= $this->classDir . '/';
|
||||
};
|
||||
$dir .= $this->getLowerTableName() . '/';
|
||||
$this->checkDir($dir);
|
||||
return $dir;
|
||||
}
|
||||
@ -271,7 +276,11 @@ class VueIndexGenerator extends BaseGenerator implements GenerateInterface
|
||||
*/
|
||||
public function getRuntimeGenerateDir()
|
||||
{
|
||||
$dir = $this->generatorDir . 'vue/src/views/' . $this->getLowerTableName() . '/';
|
||||
$dir = $this->generatorDir . 'vue/src/views/';
|
||||
if (!empty($this->classDir) && $this->classDir != $this->getLowerTableName()) {
|
||||
$dir .= $this->classDir . '/';
|
||||
};
|
||||
$dir .= $this->getLowerTableName() . '/';
|
||||
$this->checkDir($dir);
|
||||
return $dir;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user