Commit 63a8c84d authored by renjintao's avatar renjintao

tenantcode empty

parent db58c5a2
...@@ -79,10 +79,8 @@ export default { ...@@ -79,10 +79,8 @@ export default {
// this.oidc(); // this.oidc();
}, },
mounted() { mounted() {
this.$nextTick((x) => {
//正确写法 //正确写法
this.$refs.iTenantCode.focus(); this.$refs.iTenantCode.focus();
});
}, },
methods: { methods: {
...mapActions("admin/account", ["login"]), ...mapActions("admin/account", ["login"]),
...@@ -93,10 +91,7 @@ export default { ...@@ -93,10 +91,7 @@ export default {
handleSubmit(valid, values) { handleSubmit(valid, values) {
if (this.tenantCode == "") { if (this.tenantCode == "") {
this.$Message.error("租户号不能为空"); this.$Message.error("租户号不能为空");
this.$nextTick((x) => {
//正确写法
this.$refs.iTenantCode.focus(); this.$refs.iTenantCode.focus();
});
return; return;
} }
if (valid) { 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