diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 784f53e..4cf64ad 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -2,42 +2,42 @@
- +
- -
+ + +
+

预约管理系统

+
+ +
+ + + + + + + + + + + + + + + + + + 登录 +
+ + +
+
@@ -60,7 +60,7 @@ } } const validatePassword = (rule, value, callback) => { - if (value.length < 6) { + if (value.length == 0) { callback(new Error('密码输入错误')) } else { callback() @@ -69,8 +69,8 @@ return { windowHeight: document.documentElement.clientHeight, //实时屏幕高度 loginForm: { - username: 'admin', - password: 'Admin2022' + username: '', + password: '' }, loginRules: { username: [{ @@ -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 = () => { return (() => {