UNPKG
magic-helper
Version:
latest (1.0.0)
1.0.0
this is magic helper
magic-helper
/
src
/
common
/
params.ts
11 lines
(9 loc)
•
281 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
PARAMS_LOCAL_KEY
}
from
'../constant'
// 获取完整的启动参数
export
const
getParams
= (
) => {
return
uni.
getStorageSync
(
PARAMS_LOCAL_KEY
) }
// 获取指定key的启动参数
export
const
getParamsByKey
= (
key
:
string
) => {
return
getParams
()[key] }