chore: 调整复制分享链接命名

This commit is contained in:
2025-12-27 13:14:46 +08:00
parent a932178509
commit 3ea57ba023
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ import { useState } from "react";
import { toast } from "sonner";
import { BlogPermissionCheckBoxs } from "./BlogPermissionCheckBoxs";
import { AdminAPI } from "@/lib/api/client";
import { handleCopyShareURL } from "./utils";
import { copyShareURL } from "./utils";
interface AddBlogProps {
children: React.ReactNode;
@@ -152,7 +152,7 @@ export default function AddBlog({ children, onRefresh }: AddBlogProps) {
</div>
<DialogFooter >
<div className="flex justify-between w-full">
<Button type="button" variant='outline' onClick={() => handleCopyShareURL({
<Button type="button" variant='outline' onClick={() => copyShareURL({
slug: blog.slug,
password: blog.password,
permissions: blog.permissions,

View File

@@ -1,7 +1,7 @@
import { BlogPermission } from "@/lib/types/Blog.Permission.enum";
import { toast } from "sonner";
export function handleCopyShareURL(data: {
export function copyShareURL(data: {
slug: string;
password: string;
permissions: BlogPermission[];