fix: 修复license未认证的情况下,按回车键可以登录的问题
This commit is contained in:
@@ -30,13 +30,13 @@
|
|||||||
@click="login"
|
@click="login"
|
||||||
@keyup.enter="login"
|
@keyup.enter="login"
|
||||||
style="font-size: 16px;"
|
style="font-size: 16px;"
|
||||||
>Login</el-button
|
>Login
|
||||||
>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="licenseStatus !== 0">
|
<el-form-item v-if="licenseStatus !== 0">
|
||||||
<div class="license-error-msg">{{licenseStatusErrMsg}}</div>
|
<div class="license-error-msg">{{licenseStatusErrMsg}}</div>
|
||||||
<div class="license-file">
|
<div class="license-file">
|
||||||
<button style="position: relative;" class="license__btn margin-r-20" @click.prevent="downloadFile">
|
<button style="position: relative;" class="license__btn margin-r-20" @click.prevent="downloadFile" @keyup.enter="login">
|
||||||
<i class="cn-icon-download1 cn-icon margin-r-6"></i><span>Download c2v file</span>
|
<i class="cn-icon-download1 cn-icon margin-r-6"></i><span>Download c2v file</span>
|
||||||
</button>
|
</button>
|
||||||
<el-upload :action="`${baseUrl}sys/license/upload`"
|
<el-upload :action="`${baseUrl}sys/license/upload`"
|
||||||
@@ -98,6 +98,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (this.licenseStatus !== 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
axios.post(api.login, { username: this.username, pin: this.pin }).then(
|
axios.post(api.login, { username: this.username, pin: this.pin }).then(
|
||||||
res => {
|
res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user