diff --git a/app/api-collect-code/http.js b/app/api-collect-code/http.js index 0bb1f33..08e6936 100644 --- a/app/api-collect-code/http.js +++ b/app/api-collect-code/http.js @@ -11,7 +11,7 @@ export function setupHttp() { if (http) return http const {codeToken}= codeAuthStore() const config = useRuntimeConfig() - const baseURL = config.public.NUXT_PUBLIC_API_COLLECT_CODE + const baseURL = config.public.NUXT_PUBLIC_API_BASE const router = useRouter() const i18n = useNuxtApp().$i18n diff --git a/app/pages/collectCode/mine/index.vue b/app/pages/collectCode/mine/index.vue index 3921b45..4398da2 100644 --- a/app/pages/collectCode/mine/index.vue +++ b/app/pages/collectCode/mine/index.vue @@ -80,6 +80,9 @@ const loadMore = async () => { const abnormal=ref(false) const abnormalRow=ref({}) const inputLotNo=async (data)=>{ + if (createForm.value.lotNo<=25000){ + return + } const res=await offlineQrcodeList({ lotNo:createForm.value.lotNo-25000 }) diff --git a/app/plugins/http.ts b/app/plugins/http.ts index 47533ba..16e2c67 100644 --- a/app/plugins/http.ts +++ b/app/plugins/http.ts @@ -1,5 +1,6 @@ import { setupHttp } from '@/api/http' - +import { setupHttp as setupHttp1} from '@/api-collect-code/http' export default defineNuxtPlugin(() => { setupHttp() + setupHttp1() })