BUG: #144182 数字密码解锁失败次数与settings.json关联
This commit is contained in:
parent
447da9db64
commit
b20c3a9c8f
|
@ -115,7 +115,6 @@ export class StarLockNumber extends LitElement {
|
|||
this.changeText = '保存成功'
|
||||
break
|
||||
case 'passcode-verify-success':
|
||||
this.errors = 0
|
||||
this.guess = ''
|
||||
this.clicks = 0
|
||||
for (let i = 0; i < 6; i++) {
|
||||
|
@ -123,8 +122,7 @@ export class StarLockNumber extends LitElement {
|
|||
}
|
||||
break
|
||||
case 'passcode-verify-error':
|
||||
this.errors += 1
|
||||
console.log(this.errors)
|
||||
this.errors = event.detail.value;
|
||||
//当密码失败三次后
|
||||
if (this.errors == 3) {
|
||||
console.log('进入已锁定页面')
|
||||
|
@ -137,7 +135,6 @@ export class StarLockNumber extends LitElement {
|
|||
composed: true,
|
||||
})
|
||||
)
|
||||
this.errors = 0
|
||||
}
|
||||
// 抖动反馈
|
||||
for (let i = 0; i < 10; i++) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {html, LitElement, CSSResultArray, PropertyValueMap} from 'lit'
|
||||
import {customElement, property, query} from 'lit/decorators.js'
|
||||
import {sharedStyles} from './pattern-view-style'
|
||||
import {sharedStyles} from './pattern-view-style.js'
|
||||
|
||||
@customElement('star-pattern-view')
|
||||
export class StarPatternView extends LitElement {
|
||||
|
|
Loading…
Reference in New Issue