fix(utils): 优化小程序端复制文本功能体验
- 小程序端直接调用原生 wx.setClipboardData,避免 Taro Promise 封装问题 - 避免微信小程序重复显示复制成功提示和误报复制失败 - 失败时仅在小程序端输出错误日志,非小程序端显示提示 - 修改首页外链跳转逻辑,支持相对路径跳转,小程序内外链复制提示提升用户体验 - 更新项目内剪切板使用规范文档,说明复制行为调整及符合相应规范要求
This commit is contained in:
3
types/global.d.ts
vendored
3
types/global.d.ts
vendored
@@ -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类型 */
|
||||
|
||||
Reference in New Issue
Block a user