mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update 20221013045839_install_user_data.php
This commit is contained in:
parent
4c694cffc6
commit
2f0aadbe65
@ -11,17 +11,16 @@ class InstallUserData extends Migrator
|
|||||||
{
|
{
|
||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
$this->createMenu();
|
$this->createMenu() && $this->createRegion();
|
||||||
$this->createRegion();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建菜单
|
* 创建菜单
|
||||||
* @return void
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
private function createMenu()
|
private function createMenu(): bool
|
||||||
{
|
{
|
||||||
ToolsExtend::write2menu([
|
return ToolsExtend::write2menu([
|
||||||
[
|
[
|
||||||
'name' => '总控台',
|
'name' => '总控台',
|
||||||
'subs' => [
|
'subs' => [
|
||||||
@ -69,7 +68,7 @@ class InstallUserData extends Migrator
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 写入默认区域数据
|
* 写入默认区域数据
|
||||||
* @return void
|
* @return mixed
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
*/
|
*/
|
||||||
private function createRegion()
|
private function createRegion()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user