提交 005e07c8 编写于 作者: 雪洛's avatar 雪洛

Merge branch 'v3' of https://github.com/dcloudio/uni-app into v3

......@@ -248,10 +248,18 @@ export function wrapperUnimplemented (name) {
}
}
export function wrapper (name, invokeMethod, extras) {
function wrapperExtras (name, extras) {
const protocolOptions = protocol[name]
if (protocolOptions) {
isFn(protocolOptions.beforeSuccess) && (extras.beforeSuccess = protocolOptions.beforeSuccess)
}
}
export function wrapper (name, invokeMethod, extras = {}) {
if (!isFn(invokeMethod)) {
return invokeMethod
}
wrapperExtras(name, extras)
return function (...args) {
if (isSyncApi(name)) {
if (validateParams(name, args, -1)) {
......
export const getClipboardData = {
beforeSuccess () {
uni.showToast({
title: '内容已复制',
icon: 'success',
mask: false
})
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册