UNPKG

magic-helper

Version:

this is magic helper

11 lines (10 loc) 304 B
import { action } from './action' import type { NavigateParams } from '../types/index' export const navigateTo = (config: NavigateParams) => { const { appid, targetUrl } = config return action({ actionType: 'navigate', appid, targetUrl: targetUrl || '/pages/index/index' }) }