@lark-apaas/miaoda-presets 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -135,8 +135,8 @@ async function copyToClipboard(text) {
135
135
  return fallbackCopyToClipboard(text);
136
136
  }
137
137
  catch (error) {
138
- console.error('复制到剪切板失败:', error);
139
- return false;
138
+ // 执行navigator.clipboard.writeText失败时,降级方案
139
+ return fallbackCopyToClipboard(text);
140
140
  }
141
141
  }
142
142
  // 获取父窗口 origin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/miaoda-presets",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "files": [
5
5
  "lib"
6
6
  ],