migrate app lock settings page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-16 22:37:35 +08:00
parent adebc96637
commit 4f21762533
7 changed files with 310 additions and 301 deletions
+7 -1
View File
@@ -27,7 +27,7 @@
</template>
<script setup lang="ts">
import { ref, computed } from 'vue';
import { ref, computed, watch } from 'vue';
import { useI18n } from '@/locales/helpers.ts';
@@ -74,6 +74,12 @@ function onSheetOpen(): void {
function onSheetClosed(): void {
cancel();
}
watch(() => props.modelValue, (newValue) => {
if (newValue === '') {
currentPinCode.value = '';
}
});
</script>
<style>