This commit is contained in:
parent
7ee4083570
commit
8320e247b6
|
@ -27,6 +27,11 @@ const handleEnter = () => {
|
|||
bar_code: bar_code.value,
|
||||
});
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
bar_code
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
@ -40,6 +40,7 @@ const getStoreList = (data) => {
|
|||
});
|
||||
storeList.value = storeList.value.concat(list);
|
||||
if (data.bar_code && storeList.value.length == 1 && isAllDigits(data.bar_code)) {
|
||||
shopRef.value.bar_code = ''
|
||||
cartAddInfo(storeList.value[0], storeList.value[0].attr[0]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue