更新首页样式及跨域

This commit is contained in:
2026-01-28 23:01:54 +08:00
parent 89d7761887
commit aa2612bcb9
8 changed files with 303 additions and 197 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ use app\model\FrontMenu;
class FrontMenuController extends BaseController
{
/**
/**
* 获取前端导航接口
* @return \think\response\Json
*/
@@ -163,7 +163,7 @@ class FrontMenuController extends BaseController
} catch (DbException $e) {
// 记录失败日志
$this->logFail('前端导航管理', '更新前端导航', $e->getMessage());
return json([
return json([
'code' => 500,
'msg' => 'fail' . $e->getMessage(),
'data' => $e->getTraceAsString()
@@ -176,7 +176,7 @@ class FrontMenuController extends BaseController
{
try {
// 检查是否有子前端导航
$hasChildren = FrontMenu::where('pid', $id)
$hasChildren = FrontMenu::where('pid', $id)
->where('pid', $id)
->where('delete_time', null)
->count() > 0;