default disabled auto submit
This commit is contained in:
@@ -180,8 +180,7 @@ const settingStore = useSettingStore();
|
|||||||
// ---------- 登记事件 ----------
|
// ---------- 登记事件 ----------
|
||||||
|
|
||||||
const EventItemStorageKey = "quick-scan-event-id";
|
const EventItemStorageKey = "quick-scan-event-id";
|
||||||
const AutoRegisterStorageKey = "quick-scan-auto-register";
|
const autoRegisterEnabled = ref(false);
|
||||||
const autoRegisterEnabled = ref(Storage.getDefault(AutoRegisterStorageKey, true));
|
|
||||||
const selectedEventIdList = ref<string[]>([]);
|
const selectedEventIdList = ref<string[]>([]);
|
||||||
const eventList = ref<EventItem[]>([]);
|
const eventList = ref<EventItem[]>([]);
|
||||||
const selectedOptionSelectionMap = reactive<EventOptionSelectionMap>({});
|
const selectedOptionSelectionMap = reactive<EventOptionSelectionMap>({});
|
||||||
@@ -284,10 +283,6 @@ const matchedCustomer = ref<Customer>();
|
|||||||
const registeredCustomerIdSet = new Set<string>();
|
const registeredCustomerIdSet = new Set<string>();
|
||||||
let latestDecodedText = "";
|
let latestDecodedText = "";
|
||||||
|
|
||||||
watch(autoRegisterEnabled, value => {
|
|
||||||
Storage.setString(AutoRegisterStorageKey, value);
|
|
||||||
});
|
|
||||||
|
|
||||||
async function handleDecodedText(rawText: string): Promise<void> {
|
async function handleDecodedText(rawText: string): Promise<void> {
|
||||||
const normalizedText = rawText.trim();
|
const normalizedText = rawText.trim();
|
||||||
if (!normalizedText || normalizedText === latestDecodedText) {
|
if (!normalizedText || normalizedText === latestDecodedText) {
|
||||||
|
|||||||
Reference in New Issue
Block a user