fix(系统设置): 配置邮件Port添加参数校验

--bug=1026576 --user=宋昌昌 【系统设置】配置存在问题时邮件测试未提示错误 https://www.tapd.cn/55049933/s/1383940
This commit is contained in:
song-cc-rock 2023-06-20 14:57:36 +08:00 committed by 刘瑞斌
parent fbde49c822
commit b52851bc32
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ import {getSystemMailServerInfo, modifySystemMailServerInfo, testMailServerConne
export default {
name: "EmailSetting",
data() {
const validatorPortNum = (value, callback) => {
const validatorPortNum = (rule, value, callback) => {
const numExp = /^[0-9]*$/
if (!numExp.test(value)) {
callback(new Error("Port" + this.$t("commons.type_of_num")))