Skip to content

Commit

Permalink
refactor: 更新后台菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Feb 5, 2023
1 parent f69a3bd commit 16d6918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 30 deletions.
28 changes: 0 additions & 28 deletions pages/_config.php

This file was deleted.

10 changes: 8 additions & 2 deletions src/LogisticsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ class LogisticsPlugin extends \Miaoxing\Plugin\BasePlugin
public function onAdminMenuGetMenus(AdminMenu $menu)
{
$setting = $menu->child('setting');
$setting->addChild()->setLabel('运费模板管理')->setUrl('admin/shipping-tpls')->setSort(200);
$setting->addChild()->setLabel('地址管理')->setUrl('admin/logistics-addresses')->setSort(100);

$tpls = $setting->addChild()->setLabel('运费模板管理')->setUrl('admin/shipping-tpls')->setSort(200);
$tpls->addChild()->setUrl('admin/shipping-tpls/new')->setLabel('添加');
$tpls->addChild()->setUrl('admin/shipping-tpls/[id]/edit')->setLabel('编辑');

$addresses = $setting->addChild()->setLabel('地址管理')->setUrl('admin/logistics-addresses')->setSort(100);
$addresses->addChild()->setUrl('admin/logistics-addresses/new')->setLabel('添加');
$addresses->addChild()->setUrl('admin/logistics-addresses/[id]/edit')->setLabel('编辑');
}

/**
Expand Down

0 comments on commit 16d6918

Please sign in to comment.