king
2023-12-14 0eb129a9beddbb86ae74d7106a8e60823206b8d5
src/templates/zshare/verifycard/fullScripts/index.jsx
@@ -10,7 +10,7 @@
class fullScripts extends Component {
  static propTpyes = {
    verify: PropTypes.object,
    scripts: PropTypes.array,
    getScriptsForm: PropTypes.func
  }
@@ -41,9 +41,11 @@
  }
  render() {
    const { verify, children } = this.props
    const { scripts, children } = this.props
    const { visible, scriptId } = this.state
    if (scripts.length === 0) return null
    return (
      <>
        <BorderOutlined className="full-scripts" onClick={this.trigger}/>
@@ -57,7 +59,7 @@
        >
          <img className="unfull-scripts" src={MinView} onClick={() => this.setState({visible: false, scriptId: ''})} alt=""/>
          <div className="script-table-wrap">
            {verify.scripts.map(item => {
            {scripts.map(item => {
              let title = item.sql.match(/^\s*\/\*.+\*\//)
              title = title && title[0] ? title[0] : ''
              let _text = title ? item.sql.replace(title, '') : item.sql