feat: 更新管理员导航,添加管理员权限模块和相关API导出,优化仪表盘链接样式
This commit is contained in:
@@ -489,7 +489,10 @@ export function DashboardConsole(): ReactElement {
|
||||
</p>
|
||||
{drawId != null ? (
|
||||
<Link
|
||||
className="mt-2 inline-block text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
|
||||
className={cn(
|
||||
buttonVariants({ variant: "outline", size: "sm" }),
|
||||
"mt-2 h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
|
||||
)}
|
||||
href={`/admin/draws/${drawId}`}
|
||||
>
|
||||
期号详情
|
||||
@@ -533,7 +536,10 @@ export function DashboardConsole(): ReactElement {
|
||||
</div>
|
||||
{drawId != null ? (
|
||||
<Link
|
||||
className="mt-1 inline-block text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
|
||||
className={cn(
|
||||
buttonVariants({ variant: "outline", size: "sm" }),
|
||||
"mt-1 h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
|
||||
)}
|
||||
href={`/admin/risk/draws/${drawId}/occupancy`}
|
||||
>
|
||||
占用明细
|
||||
@@ -576,7 +582,10 @@ export function DashboardConsole(): ReactElement {
|
||||
{drawId != null ? (
|
||||
<Link
|
||||
href={`/admin/risk/draws/${drawId}/hot`}
|
||||
className="text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
|
||||
className={cn(
|
||||
buttonVariants({ variant: "outline", size: "sm" }),
|
||||
"h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
|
||||
)}
|
||||
>
|
||||
查看全部
|
||||
</Link>
|
||||
@@ -600,7 +609,10 @@ export function DashboardConsole(): ReactElement {
|
||||
{drawId != null ? (
|
||||
<Link
|
||||
href={`/admin/risk/draws/${drawId}/sold-out`}
|
||||
className="text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
|
||||
className={cn(
|
||||
buttonVariants({ variant: "outline", size: "sm" }),
|
||||
"h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
|
||||
)}
|
||||
>
|
||||
查看全部
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user