mirror of https://github.com/jeecgboot/jeecg-boot
🎨 格式化LockPage.vue避免eslint报错
parent
4477f03cf3
commit
4be0f376cb
|
@ -30,7 +30,13 @@
|
|||
{{ userinfo.realname }}
|
||||
</p>
|
||||
</div>
|
||||
<InputPassword @change="unLock('change')" @keyup.enter="unLock('enter')" :placeholder="t('sys.lock.placeholder')" class="enter-x" v-model:value="password" />
|
||||
<InputPassword
|
||||
@change="unLock('change')"
|
||||
@keyup.enter="unLock('enter')"
|
||||
:placeholder="t('sys.lock.placeholder')"
|
||||
class="enter-x"
|
||||
v-model:value="password"
|
||||
/>
|
||||
<span :class="`${prefixCls}-entry__err-msg enter-x`" v-if="errMsg">
|
||||
{{ t('sys.lock.alert') }}
|
||||
</span>
|
||||
|
@ -132,12 +138,11 @@ import {ref, computed, onMounted, onUnmounted} from 'vue';
|
|||
|
||||
onMounted(() => {
|
||||
window.addEventListener('keydown', handleKeyDown);
|
||||
})
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
window.removeEventListener('keydown', handleKeyDown);
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
@prefix-cls: ~'@{namespace}-lock-page';
|
||||
|
|
Loading…
Reference in New Issue