fix: 修复自定义密码相关bug
This commit is contained in:
parent
8fb4aadfa6
commit
e5276a3085
@ -557,10 +557,14 @@ export const useStarCloudStore = defineStore('starCloud', {
|
||||
let { pwdNo, operate, keyboardPwd, startDate, endDate, pwdRight } = password
|
||||
|
||||
if (operate === 0 || operate === 1) {
|
||||
const checkPasswordResult = await this.checkPasswordRequest({
|
||||
const checkPasswordParams = {
|
||||
lockId: this.lockInfo.lockId,
|
||||
keyboardPwd
|
||||
})
|
||||
}
|
||||
if (password.keyboardPwdId) {
|
||||
checkPasswordParams.keyboardPwdId = password.keyboardPwdId
|
||||
}
|
||||
const checkPasswordResult = await this.checkPasswordRequest(checkPasswordParams)
|
||||
if (checkPasswordResult.code === -3) {
|
||||
return Result.ReadyHasPassword
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user