Browse Source

修复bug

leo 1 year ago
parent
commit
2dd6533dd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/plugins.js

+ 1 - 1
plugins/plugins.js

@@ -24,7 +24,7 @@ export function writeToClipboard(text, success = () => { }, error = () => { }) {
             setTimeout(() => {
                 navigator.clipboard.writeText(text).then(() => {
                     success()
-                }).catch((error) => {
+                }).catch((err) => {
                     error()
                 })
             }, 0);