king
2022-06-28 0472ec32cadb4f9bca6dbab82ac33a42e76f37ed
src/tabviews/custom/components/code/sand-box/index.jsx
@@ -67,7 +67,9 @@
      arr_field: _config.columns.map(col => col.field).join(','),
    }, () => {
      if (_config.wrap.datatype !== 'static' && _config.setting && _config.setting.sync !== 'true' && _config.setting.onload === 'true') {
        this.loadData()
        setTimeout(() => {
          this.loadData()
        }, _config.setting.delay || 0)
      }
      this.renderView()
    })
@@ -195,7 +197,7 @@
        try {
          // eslint-disable-next-line no-eval
          eval(js)
        } catch {
        } catch (e) {
          console.warn('JS 执行失败!')
        }
      }
@@ -206,7 +208,7 @@
    const { config, loading, html } = this.state
    return (
      <div className="custom-sand-box" style={{...config.style}}>
      <div className="custom-sand-box" id={'anchor' + config.uuid} style={{...config.style}}>
        {loading ?
          <div className="loading-mask">
            <div className="ant-spin-blur"></div>