|
|
|
|
@ -60,7 +60,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const validatePassword = (rule, value, callback) => {
|
|
|
|
|
if (value.length < 6) {
|
|
|
|
|
if (value.length == 0) {
|
|
|
|
|
callback(new Error('密码输入错误'))
|
|
|
|
|
} else {
|
|
|
|
|
callback()
|
|
|
|
|
@ -115,7 +115,7 @@
|
|
|
|
|
var that = this;
|
|
|
|
|
let height = this.$refs.formBox.offsetHeight; //100
|
|
|
|
|
that.formHeight = height;
|
|
|
|
|
that.marginTop = (that.windowHeight - height*1.5) / 2;
|
|
|
|
|
that.marginTop = (that.windowHeight - height * 1.5) / 2;
|
|
|
|
|
// <!--把window.onresize事件挂在到mounted函数上-->
|
|
|
|
|
window.onresize = () => {
|
|
|
|
|
return (() => {
|
|
|
|
|
|