@tslsmart/magic-applet
Version:
特斯联移动端统一接口,抹平h5和wgt的差异
12 lines (11 loc) • 335 B
text/typescript
import { action } from './action'
import { DEFAULT_TARGET } from '../constant'
import type { OpenDoorConfig } from '../types/index'
export const openDoor = (config: OpenDoorConfig) => {
const { targetUrl, info } = config
return action({
actionType: 'openDoor',
targetUrl: targetUrl || DEFAULT_TARGET,
data: info
})
}