|
|
@ -9,8 +9,16 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px"> |
|
|
|
<el-form-item v-if="loginData.tenantEnable === 'true'" prop="tenantName"> |
|
|
|
<el-input v-model="loginData.loginForm.tenantName" :placeholder="t('login.tenantNamePlaceholder')" |
|
|
|
:prefix-icon="iconHouse" link type="primary" /> |
|
|
|
<!-- <el-input v-model="loginData.loginForm.tenantName" :placeholder="t('login.tenantNamePlaceholder')" |
|
|
|
:prefix-icon="iconHouse" link type="primary" /> --> |
|
|
|
<el-select v-model="loginData.loginForm.tenantName" :placeholder="t('login.tenantNamePlaceholder')" :prefix-icon="iconHouse"> |
|
|
|
<el-option |
|
|
|
v-for="item in tenantArray" |
|
|
|
:key="item" |
|
|
|
:label="item" |
|
|
|
:value="item" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px"> |
|
|
@ -110,6 +118,7 @@ |
|
|
|
// 验证码开关 |
|
|
|
const captchaEnabled = ref(true); |
|
|
|
const codeUrl = ref(""); |
|
|
|
const tenantArray = JSON.parse(import.meta.env.VITE_TENANT); |
|
|
|
|
|
|
|
const LoginRules = { |
|
|
|
tenantName: [required], |
|
|
@ -121,7 +130,7 @@ |
|
|
|
captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE, |
|
|
|
tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE, |
|
|
|
loginForm: { |
|
|
|
tenantName: '闻荫源码', |
|
|
|
tenantName: tenantArray[0], |
|
|
|
username: 'admin', |
|
|
|
password: '123456', |
|
|
|
captchaVerification: '', |
|
|
|