diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 6d3111f..45e6812 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -28,6 +28,10 @@ const getStoreList = (data) => { ...where.value, ...data, }; + if (data.bar_code && isAllDigits(data.bar_code)) { + storeList.value = []; + where.value.page = 1; + } storeListApi(userStore.userInfo.service.mer_id, where.value).then((res) => { if(res.data?.list?.length < where.value.limit) loadEnd.value = true; let list = res.data.list.map((item) => {