From c545aea2a34157cd91bcd77521e3bc59f854c677 Mon Sep 17 00:00:00 2001 From: Austin <1344583166@qq.com> Date: Tue, 26 Nov 2024 17:31:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E6=8E=88=E6=9D=83=E8=A7=84?= =?UTF-8?q?=E5=88=99=E8=AE=BF=E9=97=AEdb=E8=BE=93=E5=85=A5=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=BC=98=E5=8C=96=20#8199?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/frontend/src/types/auto-imports.d.ts | 2 +- .../components/mysql/create-rule/components/RuleSettings.vue | 2 +- .../common/permission/components/sqlserver/CreateRule.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dbm-ui/frontend/src/types/auto-imports.d.ts b/dbm-ui/frontend/src/types/auto-imports.d.ts index 7021ac5101..d0c217f6f1 100644 --- a/dbm-ui/frontend/src/types/auto-imports.d.ts +++ b/dbm-ui/frontend/src/types/auto-imports.d.ts @@ -71,6 +71,6 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') } diff --git a/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/RuleSettings.vue b/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/RuleSettings.vue index 41e4aa7273..a01aa54fef 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/RuleSettings.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/permission/components/mysql/create-rule/components/RuleSettings.vue @@ -216,7 +216,7 @@ message: t('DB名称不允许 * ,支持通配符 %,如 Data%,区分大小写,多个对象请使用英文逗号、分号或换行分隔'), validator: (value: string) => { const dbs = value.split(/[\n;,]/); - return _.every(dbs, (item) => (!item ? true : /^[_a-zA-Z0-9]/.test(item) && !/\*/.test(value))); + return _.every(dbs, (item) => (!item ? true : !/\*/.test(value))); }, }, { diff --git a/dbm-ui/frontend/src/views/db-manage/common/permission/components/sqlserver/CreateRule.vue b/dbm-ui/frontend/src/views/db-manage/common/permission/components/sqlserver/CreateRule.vue index c1c32f67c5..e576f060fc 100644 --- a/dbm-ui/frontend/src/views/db-manage/common/permission/components/sqlserver/CreateRule.vue +++ b/dbm-ui/frontend/src/views/db-manage/common/permission/components/sqlserver/CreateRule.vue @@ -178,7 +178,7 @@ message: t('DB名称不允许 * ,支持通配符 %,如 Data%,区分大小写,多个对象请使用英文逗号、分号或换行分隔'), validator: (value: string) => { const dbs = value.split(/[\n;,]/); - return _.every(dbs, (item) => (!item ? true : /^[_a-zA-Z0-9]/.test(item) && !/\*/.test(value))); + return _.every(dbs, (item) => (!item ? true : !/\*/.test(value))); }, }, {