[PR #75] [MERGED] 修复在不支持navigator.clipboard时写入剪贴板报错 #199

Closed
opened 2026-02-27 09:13:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/maillab/cloud-mail/pull/75
Author: @LLLLLLiulei
Created: 8/11/2025
Status: Merged
Merged: 8/11/2025
Merged by: @eoao

Base: devHead: main


📝 Commits (1)

  • 663e0d5 修复在不支持navigator.clipboard时写入剪贴板报错

📊 Changes

4 files changed (+54 additions, -3 deletions)

View changed files

📝 mail-vue/src/layout/account/index.vue (+2 -1)
📝 mail-vue/src/layout/header/index.vue (+2 -1)
mail-vue/src/utils/clipboard-utils.js (+48 -0)
📝 mail-vue/src/views/reg-key/index.vue (+2 -1)

📄 Description

在非HTTPS下不支持使用navigator.clipboard,回退到使用document.execCommand('copy')


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maillab/cloud-mail/pull/75 **Author:** [@LLLLLLiulei](https://github.com/LLLLLLiulei) **Created:** 8/11/2025 **Status:** ✅ Merged **Merged:** 8/11/2025 **Merged by:** [@eoao](https://github.com/eoao) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (1) - [`663e0d5`](https://github.com/maillab/cloud-mail/commit/663e0d5e3a235e88b0079834eecf6e8ec4ec8151) 修复在不支持navigator.clipboard时写入剪贴板报错 ### 📊 Changes **4 files changed** (+54 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `mail-vue/src/layout/account/index.vue` (+2 -1) 📝 `mail-vue/src/layout/header/index.vue` (+2 -1) ➕ `mail-vue/src/utils/clipboard-utils.js` (+48 -0) 📝 `mail-vue/src/views/reg-key/index.vue` (+2 -1) </details> ### 📄 Description 在非HTTPS下不支持使用navigator.clipboard,回退到使用document.execCommand('copy') --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 09:13:42 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloud-mail-maillab#199
No description provided.