This commit is contained in:
张成
2026-04-13 11:54:27 +08:00
parent 992238f352
commit 51ff5d5d65
2 changed files with 6 additions and 17 deletions

View File

@@ -9,7 +9,7 @@
</div>
<div class="login-con">
<Card icon="log-in" title="欢迎登录" style="width:350px;height:300px;" :bordered="false">
<Card icon="log-in" title="欢迎登录" style="width:350px;height:260px;" :bordered="false">
<div class="form-con">
<login-form @on-success-valid="handleSubmit"></login-form>
</div>
@@ -43,12 +43,11 @@ export default {
},
methods: {
...mapActions('user', ['handleLogin']),
async handleSubmit({ userName, password, tenantCode }) {
async handleSubmit({ userName, password }) {
try {
let userFrom = {
name: userName,
password: password,
tenant_code: tenantCode || 'default'
password: password
}
await this.handleLogin({
userFrom,