后台管理系统基础框架:侧边栏布局、9 个页面模块、共享类型和 API 客户端
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
import type { Metadata } from "next";
|
||||
import { OpsDashboard } from "@/components/ops/OpsDashboard";
|
||||
import { requireOpsAdmin } from "@/lib/ops-admin";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "PolyWeather Ops",
|
||||
description: "PolyWeather lightweight operations dashboard.",
|
||||
};
|
||||
|
||||
export default async function OpsPage() {
|
||||
await requireOpsAdmin("/ops");
|
||||
return <OpsDashboard />;
|
||||
export default function OpsPage() {
|
||||
redirect("/ops/system");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user