| ... | ... | @@ -46,6 +46,7 @@ | 
| 46 | 46 | import { buildUUID, randomString } from '/@/utils/uuid'; | 
| 47 | 47 | import { ReloadOutlined } from '@ant-design/icons-vue'; | 
| 48 | 48 | import { useI18n } from '/@/hooks/web/useI18n'; | 
|  | 49 | +  import { specialCharactersRegex } from '/@/utils/rules'; | 
| 49 | 50 | export default defineComponent({ | 
| 50 | 51 | components: { | 
| 51 | 52 | BasicModal, | 
| ... | ... | @@ -229,6 +230,11 @@ | 
| 229 | 230 | ? field.publicKey | 
| 230 | 231 | : null, | 
| 231 | 232 | }; | 
|  | 233 | +        // tcp的访问令牌不能输入特殊字符 | 
|  | 234 | +        const tcpLimitInputSpecialCharacters = specialCharactersRegex.test(editData?.credentialsId); | 
|  | 235 | +        if (tcpLimitInputSpecialCharacters) | 
|  | 236 | +          return createMessage.warning(t('common.specialCharactersError')); | 
|  | 237 | +        // | 
| 232 | 238 | saveDeviceToken(editData) | 
| 233 | 239 | .then((res) => { | 
| 234 | 240 | if (!res) return; | 
... | ... |  |