From 6ca240a14ccf55d4e0a94fff77e95f64db2cdfcc Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 11 十月 2024 17:34:25 +0800 Subject: [PATCH] 2024-10-11 --- src/components/pasteboard/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pasteboard/index.jsx b/src/components/pasteboard/index.jsx index aae3fa1..66c00c4 100644 --- a/src/components/pasteboard/index.jsx +++ b/src/components/pasteboard/index.jsx @@ -46,7 +46,7 @@ _config = JSON.parse(window.decodeURIComponent(window.atob(_config))) if (typeof(_config) === 'object' && _config.$srcId) { - let srcid = localStorage.getItem(window.location.href.split('#')[0] + 'srcId') + let srcid = localStorage.getItem(window.GLOB.sysSign + 'srcId') if (srcid && _config.$srcId !== srcid) { notification.warning({ top: 92, @@ -61,14 +61,14 @@ } } catch (e) { // 閫氳繃sql璇彞娣诲姞瀛楁闆� - if (/[a-zA-Z0-9_]+\s+(nvarchar\(\d+\)|Decimal\(18,\d+\)|Int)/ig.test(config)) { + if (/[a-zA-Z0-9_]+\s+(nvarchar\(\d+\)|Decimal\(18,\d+\)|Int|datetime|date)/ig.test(config)) { _config = { key: 'datasourcefield', type: 'array', data: [] } - let list = config.match(/[a-zA-Z0-9_]+\s+(nvarchar\(\d+\)|Decimal\(18,\d+\)|Int)/ig) + let list = config.match(/[a-zA-Z0-9_]+\s+(nvarchar\(\d+\)|Decimal\(18,\d+\)|Int|datetime|date)/ig) list.forEach(item => { _config.data.unshift({ -- Gitblit v1.8.0