diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 107e2b7..4f8c13f 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -697,8 +697,9 @@ const local: any = { autoRec:'Auto(Recommended)', custom:'Custom', fastRoaming:'Fast Roaming', - aiRoaming:'AI Roaming' - + aiRoaming:'AI Roaming', + passwordInvalid:'The password format is incorrect, please include uppercase and lowercase letters and symbols.', + addSuccess:'Add success', }, headerbanner:{ controller:'Controller Overview', @@ -941,7 +942,8 @@ const local: any = { ok:'confirm', plenumber:'Please enter a valid number', subnetMask:'Subnet mask must be between 0-32', - iperror:'ip is not right' + iperror:'ip is not right', + applysuccess:'Apply Success', }, terminal:{ diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index c09d672..3b4164e 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -697,7 +697,9 @@ const local:any = { autoRec:'自动(建议选项)', custom:'自定义', fastRoaming:'快速漫游', - aiRoaming:'AI漫游' + aiRoaming:'AI漫游', + passwordInvalid:'密码格式不正确,请包含大小写字母和符号', + addSuccess:'添加成功', }, headerbanner:{ @@ -942,7 +944,8 @@ const local:any = { ok:'确认', plenumber:'请输入有效数字', subnetMask:'子网掩码必须在0-32之间', - iperror:'ip地址格式不正确' + iperror:'ip地址格式不正确', + applysuccess:'提交成功', }, terminal:{ diff --git a/src/views/device/access/index.vue b/src/views/device/access/index.vue index 9898174..8d68cbc 100644 --- a/src/views/device/access/index.vue +++ b/src/views/device/access/index.vue @@ -578,8 +578,9 @@ const handleApply = async () => { // 调用更新接口 const { error } = await updateAccessControl(selectedSiteId.value, submitData) - if (error) { + if (!error) { // message.error('提交失败') + message.success(t('page.access.applysuccess')) return }