提交 d72c398c 编写于 作者: fxy060608's avatar fxy060608

chore: Object.assign => extend

上级 ad27f1c6
import { extend } from '@vue/shared'
interface PlusResult extends Record<string, any> {
code?: number
message?: string
......@@ -28,6 +29,6 @@ export function warpPlusErrorCallback(
// 一键登录errorCallback新增 appid、metadata、uid 参数返回
errMsg = error.message || errMsg || ''
delete error.message
reject(errMsg, Object.assign({ code: 0 }, error))
reject(errMsg, extend({ code: 0 }, error))
}
}
import { extend } from '@vue/shared'
import {
defineAsyncApi,
API_GET_FILE_INFO,
......@@ -14,7 +15,7 @@ export const getFileInfo = <API_TYPE_GET_FILE_INFO>defineAsyncApi(
API_GET_FILE_INFO,
(options, { resolve, reject }) => {
plus.io.getFileInfo(
Object.assign(options, {
extend(options, {
success: warpPlusSuccessCallback(resolve),
fail: warpPlusErrorCallback(reject),
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册