From 06b7acb7514bb18375729497014d31e25b1cc5dc Mon Sep 17 00:00:00 2001 From: zhl Date: Sat, 8 May 2021 18:58:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BF=AE=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=95=8C=E9=9D=A2=E4=B8=8A=E7=9A=84warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/profile/password.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/profile/password.vue b/src/views/profile/password.vue index ee4d617..e0b4b6c 100644 --- a/src/views/profile/password.vue +++ b/src/views/profile/password.vue @@ -93,7 +93,7 @@ export default class extends Vue { } - private validateNewPassword(rule, value, callback) { + private validateNewPassword(rule: any, value: string, callback: (e?: Error) => {}) { if (value === this.postForm.passwordOld) { callback(new Error('不能与旧密码一致!')) } else { @@ -101,7 +101,7 @@ export default class extends Vue { } } - private validateNewPassword2(rule, value, callback) { + private validateNewPassword2(rule: any, value: string, callback: (e?: Error) => {}) { if (value !== this.postForm.password) { callback(new Error('与新密码不一致!')) } else {