This commit is contained in:
初志鑫 2020-07-27 13:38:52 +08:00
parent 3d524ed568
commit a88ad53c66
2 changed files with 10 additions and 2 deletions

View File

@ -139,6 +139,12 @@
immediate: true, immediate: true,
}, },
}, },
created() {
document.body.style.overflow = "hidden";
},
beforeDestroy() {
document.body.style.overflow = "auto";
},
mounted() { mounted() {
if ("production" !== process.env.NODE_ENV) { if ("production" !== process.env.NODE_ENV) {
this.form.username = "admin"; this.form.username = "admin";

View File

@ -154,9 +154,11 @@
passwordType: "password", passwordType: "password",
}; };
}, },
created() {}, created() {
mounted() {}, document.body.style.overflow = "hidden";
},
beforeDestroy() { beforeDestroy() {
document.body.style.overflow = "auto";
this.getPhoneIntval = null; this.getPhoneIntval = null;
clearInterval(this.getPhoneIntval); clearInterval(this.getPhoneIntval);
}, },