fix: rename desktop import action copy
This commit is contained in:
@@ -358,8 +358,8 @@ function DownstreamKeyDesktopImportButton({ fullKey }: { fullKey: string | undef
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-link"
|
||||
title="导入到 BoosAPI Desktop"
|
||||
aria-label="导入到 BoosAPI Desktop"
|
||||
title="导入到客户端"
|
||||
aria-label="导入到客户端"
|
||||
disabled={disabled}
|
||||
style={{ padding: '2px 4px', fontSize: 12, opacity: disabled ? 0.45 : 1 }}
|
||||
onClick={async (event) => {
|
||||
@@ -372,18 +372,18 @@ function DownstreamKeyDesktopImportButton({ fullKey }: { fullKey: string | undef
|
||||
const url = buildBoosApiDesktopImportUrl(key);
|
||||
try {
|
||||
window.location.href = url;
|
||||
toast.success('已唤起 BoosAPI Desktop 导入配置');
|
||||
toast.success('已唤起客户端导入配置');
|
||||
} catch {
|
||||
try {
|
||||
await copyToClipboard(url);
|
||||
toast.info('无法唤起 Desktop,已复制导入链接');
|
||||
toast.info('无法唤起客户端,已复制导入链接');
|
||||
} catch {
|
||||
toast.error('导入链接生成失败');
|
||||
}
|
||||
}
|
||||
}}
|
||||
>
|
||||
导入 Desktop
|
||||
导入客户端
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user