From 0e1e13bfab090a513c6b5e2c58eeb6e56c46868b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 01 八月 2023 09:49:31 +0800 Subject: [PATCH] 2023-08-01 --- src/tabviews/custom/components/code/sand-box/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/code/sand-box/index.jsx b/src/tabviews/custom/components/code/sand-box/index.jsx index 9027a05..6afc90e 100644 --- a/src/tabviews/custom/components/code/sand-box/index.jsx +++ b/src/tabviews/custom/components/code/sand-box/index.jsx @@ -319,8 +319,8 @@ if (js) { try { // eslint-disable-next-line - let evalfunc = eval('(true && function (data, result) {' + js + '})') - evalfunc(data, result) + let evalfunc = eval('(true && function (data, result, Api, notification) {' + js + '})') + evalfunc(data, result, Api, notification) } catch (e) { console.warn(e) } -- Gitblit v1.8.0