mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
fix: SQL变量误报错 #6624
This commit is contained in:
@@ -1159,8 +1159,6 @@ export default {
|
||||
callback()
|
||||
},
|
||||
isNumber(rule, value, callback) {
|
||||
console.log(value)
|
||||
console.log(!value)
|
||||
if (!value) {
|
||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||
return
|
||||
@@ -1168,7 +1166,6 @@ export default {
|
||||
let isNumber = false
|
||||
var reg = /^\d+$/;
|
||||
isNumber = reg.test(value);
|
||||
console.log(!isNumber)
|
||||
if (!isNumber) {
|
||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||
return
|
||||
|
||||
@@ -946,7 +946,7 @@ export default {
|
||||
this.tData.forEach((item) => {
|
||||
if (item.id === this.form.type) {
|
||||
item.children.forEach((child) => {
|
||||
if (this.formType === 'modify' && child.id === this.form.id) {
|
||||
if (child.id === this.form.id) {
|
||||
return
|
||||
}
|
||||
const configuration = JSON.parse(child.configuration)
|
||||
|
||||
Reference in New Issue
Block a user