From a02fc6a77fa1b35c6516b2d37108d80e260c6c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 十一月 2024 22:05:08 +0800 Subject: [PATCH] 2024-11-07 --- src/menu/components/share/actioncomponent/index.jsx | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/menu/components/share/actioncomponent/index.jsx b/src/menu/components/share/actioncomponent/index.jsx index c30f245..e71e10d 100644 --- a/src/menu/components/share/actioncomponent/index.jsx +++ b/src/menu/components/share/actioncomponent/index.jsx @@ -157,7 +157,7 @@ card: element }) - MKEmitter.emit('changeStyle', options, _style, this.getStyle) + MKEmitter.emit('changeStyle', options, _style, this.getStyle, 'toolBtn') } addButton = (cardId, element) => { @@ -530,6 +530,16 @@ let _actionlist = fromJS(this.state.actionlist).toJS() _actionlist = _actionlist.filter(item => !item.origin || item.uuid === card.uuid) + res.customverifys && res.customverifys.forEach(item => { + item.sql = item.sql.replace(/\t+|\v+/g, ' ') + }) + res.scripts && res.scripts.forEach(item => { + item.sql = item.sql.replace(/\t+|\v+/g, ' ') + }) + res.cbScripts && res.cbScripts.forEach(item => { + item.sql = item.sql.replace(/\t+|\v+/g, ' ') + }) + _actionlist = _actionlist.map(item => { if (item.uuid === card.uuid) { item.verify = res -- Gitblit v1.8.0