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,
},
},
created() {
document.body.style.overflow = "hidden";
},
beforeDestroy() {
document.body.style.overflow = "auto";
},
mounted() {
if ("production" !== process.env.NODE_ENV) {
this.form.username = "admin";

View File

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