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: ''
})