🎨 格式化LockPage.vue避免eslint报错

pull/6896/head
Caffeine19 2024-07-15 14:16:59 +08:00
parent 4477f03cf3
commit 4be0f376cb
1 changed files with 18 additions and 13 deletions

View File

@ -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';