diff --git a/src/pages/home/QuickSignInPage.vue b/src/pages/home/QuickSignInPage.vue index 8cb6ce6..974a1f1 100644 --- a/src/pages/home/QuickSignInPage.vue +++ b/src/pages/home/QuickSignInPage.vue @@ -180,8 +180,7 @@ const settingStore = useSettingStore(); // ---------- 登记事件 ---------- const EventItemStorageKey = "quick-scan-event-id"; -const AutoRegisterStorageKey = "quick-scan-auto-register"; -const autoRegisterEnabled = ref(Storage.getDefault(AutoRegisterStorageKey, true)); +const autoRegisterEnabled = ref(false); const selectedEventIdList = ref([]); const eventList = ref([]); const selectedOptionSelectionMap = reactive({}); @@ -284,10 +283,6 @@ const matchedCustomer = ref(); const registeredCustomerIdSet = new Set(); let latestDecodedText = ""; -watch(autoRegisterEnabled, value => { - Storage.setString(AutoRegisterStorageKey, value); -}); - async function handleDecodedText(rawText: string): Promise { const normalizedText = rawText.trim(); if (!normalizedText || normalizedText === latestDecodedText) {