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

@@ -14,13 +14,6 @@
</span>
</Input>
</FormItem>
<FormItem prop="tenantCode">
<Input v-model="form.tenantCode" placeholder="租户编码,默认 default">
<span slot="prepend">
<Icon :size="14" type="ios-briefcase"></Icon>
</span>
</Input>
</FormItem>
<FormItem>
<Button style="margin-top:20px;" size="large" @click="handleSubmit" type="primary" long>登录</Button>
</FormItem>
@@ -47,8 +40,7 @@ export default {
return {
form: {
userName: '',
password: '',
tenantCode: 'default'
password: ''
}
}
},
@@ -56,8 +48,7 @@ export default {
rules() {
return {
userName: this.userNameRules,
password: this.passwordRules,
tenantCode: [{ required: false }]
password: this.passwordRules
}
}
},
@@ -67,8 +58,7 @@ export default {
if (valid) {
this.$emit('on-success-valid', {
userName: this.form.userName,
password: this.form.password,
tenantCode: (this.form.tenantCode || '').trim() || 'default'
password: this.form.password
})
}
})