🎨 格式化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 }} {{ userinfo.realname }}
</p> </p>
</div> </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"> <span :class="`${prefixCls}-entry__err-msg enter-x`" v-if="errMsg">
{{ t('sys.lock.alert') }} {{ t('sys.lock.alert') }}
</span> </span>
@ -132,12 +138,11 @@ import {ref, computed, onMounted, onUnmounted} from 'vue';
onMounted(() => { onMounted(() => {
window.addEventListener('keydown', handleKeyDown); window.addEventListener('keydown', handleKeyDown);
}) });
onUnmounted(() => { onUnmounted(() => {
window.removeEventListener('keydown', handleKeyDown); window.removeEventListener('keydown', handleKeyDown);
}) });
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@prefix-cls: ~'@{namespace}-lock-page'; @prefix-cls: ~'@{namespace}-lock-page';