mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-11 08:03:28 +08:00
sandbox 加入 lodash
This commit is contained in:
@@ -475,12 +475,12 @@ let getSandboxFuns = () => {
|
|||||||
axios: axios,
|
axios: axios,
|
||||||
Audio: Audio,
|
Audio: Audio,
|
||||||
fetch: fetch,
|
fetch: fetch,
|
||||||
|
_: _,
|
||||||
// 兼容老版本
|
// 兼容老版本
|
||||||
fs: fs,
|
fs: fs,
|
||||||
path: path,
|
path: path,
|
||||||
os: os,
|
os: os,
|
||||||
child_process: child_process,
|
child_process: child_process,
|
||||||
util: util,
|
|
||||||
}
|
}
|
||||||
shortCodes.forEach(f => {
|
shortCodes.forEach(f => {
|
||||||
sandbox[f.name] = f
|
sandbox[f.name] = f
|
||||||
|
Reference in New Issue
Block a user