feat(utils): 优化 wget命令复制功能
- 重构 copyWgetCommand 函数,使用 navigator.clipboard API 替代原实现 - 添加文件名参数,使 wget 命令更加完整 - 使用全局 alertStore 显示复制成功或失败的提示信息- 在 SendFileView 中更新 wget 命令复制按钮的点击事件处理
This commit is contained in:
@@ -339,7 +339,7 @@
|
||||
<TerminalIcon class="w-4 h-4 sm:w-5 sm:h-5 mr-1.5 sm:mr-2 text-indigo-500 flex-shrink-0" />
|
||||
<span class="truncate">wget下载</span>
|
||||
</h4>
|
||||
<button @click="copyWgetCommand(selectedRecord.retrieveCode)"
|
||||
<button @click="copyWgetCommand(selectedRecord.retrieveCode,selectedRecord.filename)"
|
||||
class="p-1.5 sm:p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors flex-shrink-0">
|
||||
<ClipboardCopyIcon class="w-4 h-4 sm:w-5 sm:h-5"
|
||||
:class="[isDarkMode ? 'text-gray-400' : 'text-gray-500']" />
|
||||
|
||||
Reference in New Issue
Block a user