From 482cff5ecefb983f3845f0dbd41fdd7679fcb392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 30 Jun 2026 18:18:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(utils):=20=E4=BC=98=E5=8C=96=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=AB=AF=E5=A4=8D=E5=88=B6=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 小程序端直接调用原生 wx.setClipboardData,避免 Taro Promise 封装问题 - 避免微信小程序重复显示复制成功提示和误报复制失败 - 失败时仅在小程序端输出错误日志,非小程序端显示提示 - 修改首页外链跳转逻辑,支持相对路径跳转,小程序内外链复制提示提升用户体验 - 更新项目内剪切板使用规范文档,说明复制行为调整及符合相应规范要求 --- types/global.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/global.d.ts b/types/global.d.ts index 0457ca6..be6b248 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -69,6 +69,9 @@ declare const API_BASE_URL: string; declare const APP_NAME: string; declare const DEBUG: string; +// 微信小程序原生全局对象 wx +declare const wx: any; + // 基础类型定义 declare global { /** 通用ID类型 */