|
|
@@ -6,36 +6,35 @@
|
|
|
<lang-select />
|
|
|
</div>
|
|
|
<el-form-item prop="username">
|
|
|
- <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off"
|
|
|
- :placeholder="proxy.$t('login.username')">
|
|
|
+ <el-input v-model="loginForm.username" type="text" size="large" auto-complete="off" :placeholder="proxy.$t('login.username')">
|
|
|
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="password">
|
|
|
- <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off"
|
|
|
- :placeholder="proxy.$t('login.password')" @keyup.enter="handleLogin">
|
|
|
+ <el-input v-model="loginForm.password" type="password" size="large" auto-complete="off" :placeholder="proxy.$t('login.password')" @keyup.enter="handleLogin">
|
|
|
<template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="captchaEnabled" prop="code">
|
|
|
- <el-input v-model="loginForm.code" size="large" auto-complete="off" :placeholder="proxy.$t('login.code')"
|
|
|
- style="width: 63%" @keyup.enter="handleLogin">
|
|
|
+ <el-input v-model="loginForm.code" size="large" auto-complete="off" :placeholder="proxy.$t('login.code')" style="width: 63%" @keyup.enter="handleLogin">
|
|
|
<template #prefix><svg-icon icon-class="validCode" class="el-input__icon input-icon" /></template>
|
|
|
</el-input>
|
|
|
<div class="login-code">
|
|
|
<img :src="codeUrl" class="login-code-img" @click="getCode" />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-checkbox v-model="loginForm.rememberMe" style="margin: 0 0 25px 0">{{ proxy.$t('login.rememberPassword')
|
|
|
- }}</el-checkbox>
|
|
|
+ <el-checkbox v-model="loginForm.rememberMe" style="margin: 0 0 25px 0">
|
|
|
+ {{ proxy.$t('login.rememberPassword')}}
|
|
|
+ </el-checkbox>
|
|
|
<el-form-item style="width: 100%">
|
|
|
<el-button :loading="loading" size="large" type="primary" style="width: 100%" @click.prevent="handleLogin">
|
|
|
<span v-if="!loading">{{ proxy.$t('login.login') }}</span>
|
|
|
<span v-else>{{ proxy.$t('login.logging') }}</span>
|
|
|
</el-button>
|
|
|
<div v-if="register" style="float: right">
|
|
|
- <router-link class="link-type" :to="'/register'">{{ proxy.$t('login.switchRegisterPage')
|
|
|
- }}</router-link>
|
|
|
+ <router-link class="link-type" :to="'/register'">
|
|
|
+ {{ proxy.$t('login.switchRegisterPage')}}
|
|
|
+ </router-link>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
@@ -145,7 +144,6 @@ const getCode = async () => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-
|
|
|
onMounted(() => {
|
|
|
getCode();
|
|
|
// 获取路由地址参数tenantId
|