diff --git a/unitool.js b/unitool.js index f95db9c..cbe1e9e 100644 --- a/unitool.js +++ b/unitool.js @@ -1,7 +1,7 @@ // uniapp people side tools import './ican-H5Api.js' // 对齐H5Api: https://ext.dcloud.net.cn/plugin?id=415 // 注意要取消默认自带的 showToast https://uniapp.dcloud.io/api/system/clipboard?id=%e6%b3%a8%e6%84%8f -const BASEND_TYPE_DEFAULT = 'SERVER' // 服务器 SERVER 或云服务 UNICLOUD +const BASEND_TYPE_DEFAULT = 'SERVER' // one of { SERVER: 服务器, UNICLOUD_FUNC: 云函数, UNICLOUD_OBJECT: 云对象 } export default { // 用直观的色彩,代替 uview 的命名方式: @@ -165,7 +165,7 @@ export default { } catch (error) { result = { _state: 'CLINET_BASEND_EXCEPTION', error } } - } else if (basendType === 'UNICLOUD') { + } else if (basendType === 'UNICLOUD_FUNC') { let { /* success, header, requestedId, */ result: resultCloud = {} } = await uniCloud .callFunction({ name: apiWho,