@ -28,6 +28,7 @@ export default {
actions: 'Operation',
edit_tenant: 'Edit Tenant',
tenant_code_tips: 'Please enter the operating system tenant',
tenant_code_invalid_tips: 'The tenant code is invalid.',
queue_name_tips: 'Please select queue',
description_tips: 'Please enter a description',
delete_confirm: 'Delete?',
actions: '操作',
edit_tenant: '编辑租户',
tenant_code_tips: '请输入操作系统租户',
tenant_code_invalid_tips: '操作系统租户名称含有非法字符',
queue_name_tips: '请选择队列',
description_tips: '请输入描述',
delete_confirm: '确定删除吗?',
@ -47,6 +47,9 @@ export function useModalData(
if (!variables.model.tenantCode) {
return new Error(t('security.tenant.tenant_code_tips'))
}
if (variables.model.tenantCode.search('[^-._a-zA-Z0-9]') !== -1) {
return new Error(t('security.tenant.tenant_code_invalid_tips'))
},
queueId: {