diff --git a/.env.development b/.env.development index 353f4a4bb..e522b8da3 100644 --- a/.env.development +++ b/.env.development @@ -49,6 +49,3 @@ VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' # 是否需要验证码 VITE_NEED_CODE = false - -# 首页调用接口区分scp和wms -VITE_INDEX_INTERFACE = 'WMS' diff --git a/.env.prod b/.env.prod index 42cfa7e47..7ab6a15fe 100644 --- a/.env.prod +++ b/.env.prod @@ -51,6 +51,3 @@ VITE_NEED_CODE = true # 是否需要下载PDA链接 VITE_PDA_URL = false - -# 首页调用接口区分scp和wms -VITE_INDEX_INTERFACE = 'SCP' diff --git a/.env.test b/.env.test index 48526156e..32e696b82 100644 --- a/.env.test +++ b/.env.test @@ -47,7 +47,4 @@ VITE_NEED_CODE = true # 是否需要下载PDA链接 -VITE_PDA_URL = true - -# 首页调用接口区分scp和wms -VITE_INDEX_INTERFACE = 'SCP' \ No newline at end of file +VITE_PDA_URL = true \ No newline at end of file diff --git a/src/views/home/components/supplierIndex.vue b/src/views/home/components/supplierIndex.vue index 66f68ab37..731a44cfe 100644 --- a/src/views/home/components/supplierIndex.vue +++ b/src/views/home/components/supplierIndex.vue @@ -170,20 +170,11 @@ const getPartTOPCharts = async () => { } // 获取供应商数据 const getSupplierData = async () => { - if (import.meta.env.VITE_INDEX_INTERFACE == 'SCP') { - IndexApi.getSupplierData().then((res) => { - supplierData.value = res - getInvoiceCharts() - getPartTOPCharts() - }) - } - if (import.meta.env.VITE_INDEX_INTERFACE == 'WMS') { - IndexApi.getWmsData().then((res) => { - supplierData.value = res - getInvoiceCharts() - getPartTOPCharts() - }) - } + IndexApi.getSupplierData().then((res) => { + supplierData.value = res + getInvoiceCharts() + getPartTOPCharts() + }) } // 最新消息 const notaicList = ref([]) // 列表的数据