There was an error while loading. Please reload this page.
1 parent 1e17a12 commit dd2c3baCopy full SHA for dd2c3ba
1 file changed
webui/src/hooks/useBangumiRuleForm.ts
@@ -56,7 +56,7 @@ export function useBangumiRuleForm(rule: Ref<BangumiRule>) {
56
57
async function copyRssLink(link: string) {
58
if (!link) return;
59
- await copyText(link);
+ await copyTextWithFallback(link);
60
copied.value = true;
61
clearTimeout(copyTimer);
62
copyTimer = setTimeout(() => {
@@ -74,7 +74,7 @@ export function useBangumiRuleForm(rule: Ref<BangumiRule>) {
74
* 注:回退方案已被标记为 deprecated,未来可能会被移除,所以并不能保证永远生效
75
* @param text
76
*/
77
- async function copyText(text: string): Promise<boolean> {
+ async function copyTextWithFallback(text: string): Promise<boolean> {
78
try {
79
if (
80
// 确认剪切板对象存在且当前为安全上下文
0 commit comments