* sync collection

* remove lock

* fix ts

* fix: ts
This commit is contained in:
Archer
2025-03-19 21:14:19 +08:00
committed by archer
parent 87e90c37bd
commit 6fee39873d
2 changed files with 6 additions and 8 deletions

View File

@@ -18,7 +18,11 @@ export const useCopyData = () => {
const { setCopyContent } = useCommonStore();
const copyData = useCallback(
async (data: string, title = t('common:common.Copy Successful'), duration = 1000) => {
async (
data: string,
title: string | null | undefined = t('common:common.Copy Successful'),
duration = 1000
) => {
data = data.trim();
try {