default disabled auto submit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user