From 3e15e46d5741d8bed50b07ce2808a9457daf3777 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Fri, 1 Nov 2024 13:54:39 +0800 Subject: [PATCH] =?UTF-8?q?HL-6334SCP=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=EF=BC=8C=E8=B4=A6=E5=8F=B7=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=94=B9=E5=AF=B9=E9=82=AE=E7=AE=B1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=9A=84=E6=A0=B7=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/forgetPassword.vue | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/views/login/forgetPassword.vue b/src/views/login/forgetPassword.vue index 8655c75fa..1e01aa8bf 100644 --- a/src/views/login/forgetPassword.vue +++ b/src/views/login/forgetPassword.vue @@ -10,6 +10,20 @@ >
{{ t('ts.忘记密码') }}
+ + + + + + + + @@ -39,6 +53,10 @@ import { setTenantId, setToken } from '@/utils/auth' import { usePermissionStore } from '@/store/modules/permission' import { getTenantIdByName, sendSmsCode, smsLogin } from '@/api/login' import * as UserApi from '@/api/system/user' +import { getTenant } from '@/utils/systemParam' +import { CACHE_KEY, useCache } from '@/hooks/web/useCache' +const { wsCache } = useCache() +const language = wsCache.get('lang') const { t } = useI18n() const message = useMessage() @@ -53,7 +71,21 @@ const rules = { email: [{ required: true, message: '请输入邮箱', trigger: 'blur' }] } +const tenantEnable = import.meta.env.VITE_APP_TENANT_ENABLE +const tenantArray = ref(JSON.parse(getTenant())) +if('en-US'==language){ + tenantArray.value = tenantArray.value.map(item => ({ + name: item, + aliasName:item.replace('长春','ChangChun').replace('成都','ChengDu') + })); +}else{ + tenantArray.value = tenantArray.value.map(item => ({ + name: item, + aliasName:item + })); +} const loginData = reactive({ + tenantName: tenantArray.value[0].name, username: '', email: '' })