1
This commit is contained in:
@@ -72,4 +72,20 @@ export function uploadQiuFile(path, file, is_public = 1) {
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 复制文字内容
|
||||
* @param {文本} text
|
||||
*/
|
||||
export function copyText(text) {
|
||||
wx.setClipboardData({
|
||||
data: text,
|
||||
success() {
|
||||
wx.showToast({
|
||||
title: '已复制到剪切板',
|
||||
icon: 'none'
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user