default disabled auto submit

This commit is contained in:
Timi
2026-09-13 15:00:00 +08:00
parent f320717f84
commit 822767ac64
+1 -6
View File
@@ -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<string[]>([]);
const eventList = ref<EventItem[]>([]);
const selectedOptionSelectionMap = reactive<EventOptionSelectionMap>({});
@@ -284,10 +283,6 @@ const matchedCustomer = ref<Customer>();
const registeredCustomerIdSet = new Set<string>();
let latestDecodedText = "";
watch(autoRegisterEnabled, value => {
Storage.setString(AutoRegisterStorageKey, value);
});
async function handleDecodedText(rawText: string): Promise<void> {
const normalizedText = rawText.trim();
if (!normalizedText || normalizedText === latestDecodedText) {