|
@@ -16,7 +16,7 @@
|
|
<div class="swl-content-login-right">
|
|
<div class="swl-content-login-right">
|
|
<div class="swlclr-login">
|
|
<div class="swlclr-login">
|
|
<div class="swlclr-login-div">
|
|
<div class="swlclr-login-div">
|
|
- <div class="swlclr-login-div-title">账号登录</div>
|
|
|
|
|
|
+ <div class="swlclr-login-div-title">{{ $t('login.signInTitle') }}</div>
|
|
<a-form class="login-form" ref="loginForm" :model="ruleForm" :rules="rules">
|
|
<a-form class="login-form" ref="loginForm" :model="ruleForm" :rules="rules">
|
|
<a-form-item name="account">
|
|
<a-form-item name="account">
|
|
<a-input
|
|
<a-input
|
|
@@ -62,7 +62,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <div class="agree">
|
|
|
|
|
|
+ <div class="agree" v-if="config.lang === 'zh-cn'">
|
|
<a-checkbox v-model:checked="loginAgree"/>
|
|
<a-checkbox v-model:checked="loginAgree"/>
|
|
<span style="color:#222222">已阅读并同意</span>
|
|
<span style="color:#222222">已阅读并同意</span>
|
|
<span style="color: #096ac6;text-decoration:underline dotted; cursor:pointer;" @click="agreeTipsYhfwxy = true">《用户服务协议》</span>
|
|
<span style="color: #096ac6;text-decoration:underline dotted; cursor:pointer;" @click="agreeTipsYhfwxy = true">《用户服务协议》</span>
|
|
@@ -72,7 +72,7 @@
|
|
<a-button type="primary" class="w-full mt-4" :loading="loading" round size="large" @click="login">
|
|
<a-button type="primary" class="w-full mt-4" :loading="loading" round size="large" @click="login">
|
|
{{ $t('login.signIn') }}
|
|
{{ $t('login.signIn') }}
|
|
</a-button>
|
|
</a-button>
|
|
- <div class="zhuce">还没有账号?<span>立即注册</span></div>
|
|
|
|
|
|
+ <div class="zhuce">{{ $t('login.noAccount') }}<span>{{ $t('login.registerAccount') }}</span></div>
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -280,7 +280,7 @@
|
|
//登陆
|
|
//登陆
|
|
const loginForm = ref()
|
|
const loginForm = ref()
|
|
const login = async () => {
|
|
const login = async () => {
|
|
- if (loginAgree.value) {
|
|
|
|
|
|
+ if (loginAgree.value || config.value.lang === 'en') {
|
|
loginForm.value
|
|
loginForm.value
|
|
.validate()
|
|
.validate()
|
|
.then(async () => {
|
|
.then(async () => {
|