feat: 更新锁屏密码Basd64编码处理,无密码直接进入

This commit is contained in:
TsMask
2025-04-18 16:05:59 +08:00
parent 294212620e
commit f7ea8e13ec
5 changed files with 9 additions and 7 deletions

View File

@@ -29,7 +29,6 @@ const password = ref('');
/**解锁 */
function handleUnlock() {
if (maskStore.lockPasswd === password.value) {
message.success(t('components.LockScreen.validSucc'), 3);
password.value = '';
maskStore.handleMaskType('none');
const redirectPath = route.query?.redirect || '/index';
@@ -79,7 +78,7 @@ onMounted(() => {
</span>
</div>
<div class="lock-screen_login-from">
<a-input-group compact>
<a-input-group compact v-if="maskStore.lockPasswd">
<a-input
type="password"
v-model:value="password"
@@ -92,6 +91,10 @@ onMounted(() => {
<LoginOutlined />
</a-button>
</a-input-group>
<a-button type="primary" block @click="handleUnlock" v-else>
{{ t('components.LockScreen.enter') }}
</a-button>
<a-button type="text" class="logout" @click="handleBackLogin">
{{ t('components.LockScreen.backLogin') }}
</a-button>