king
2023-12-12 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a
src/menu/components/code/sandbox/editorcode/index.jsx
@@ -4,8 +4,6 @@
import { Modal, Tabs, message } from 'antd'
import { FormOutlined } from '@ant-design/icons'
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
import asyncComponent from '@/utils/asyncComponent'
import './index.scss'
@@ -19,7 +17,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    visible: false,
    html: '',
    css: '',
@@ -37,7 +34,7 @@
      visible: true,
      html: config.html || '',
      css: config.css || '',
      js: config.js || '',
      js: config.js || '// Function(data, result, Api, notification, systemType) data-数据列表,result-查询接口返回结果,Api-接口,notification-信息提示控件(移动端为Toast),systemType-系统类型(正式为 production,测试为空)',
    })
  }
@@ -75,7 +72,7 @@
  }
  render () {
    const { visible, dict, html, css, js } = this.state
    const { visible, html, css, js } = this.state
    return (
      <div style={{display: 'inline-block'}}>
@@ -86,7 +83,7 @@
          visible={visible}
          width={950}
          maskClosable={false}
          okText={dict['model.submit']}
          okText="提交"
          onOk={this.verifySubmit}
          onCancel={() => { this.setState({ visible: false }) }}
          destroyOnClose