UNPKG
magic-helper
Version:
latest (1.0.0)
1.0.0
this is magic helper
magic-helper
/
lib
/
h5
/
navigateTo.js
10 lines
(9 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ action }
from
'./action'
;
export
const
navigateTo
= (
config
) => {
const
{ appid, targetUrl } = config;
return
action
({
actionType
:
'navigate'
, appid,
targetUrl
: targetUrl ||
'/pages/index/index'
}); };