Commit 63a8c84d authored by renjintao's avatar renjintao

tenantcode empty

parent db58c5a2
......@@ -79,10 +79,8 @@ export default {
// this.oidc();
},
mounted() {
this.$nextTick((x) => {
//正确写法
this.$refs.iTenantCode.focus();
});
},
methods: {
...mapActions("admin/account", ["login"]),
......@@ -93,10 +91,7 @@ export default {
handleSubmit(valid, values) {
if (this.tenantCode == "") {
this.$Message.error("租户号不能为空");
this.$nextTick((x) => {
//正确写法
this.$refs.iTenantCode.focus();
});
this.$refs.iTenantCode.focus();
return;
}
if (valid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment