From d7baf5d85401dc971a87e88f90085c3ba4a9247c Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Fri, 12 Jan 2024 16:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/proxy.js | 4 ++-- src/app.jsx | 2 +- src/pages/order/orderflow/service.js | 16 ++++++++++++++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/config/proxy.js b/config/proxy.js index 3fef469..ebf3438 100644 --- a/config/proxy.js +++ b/config/proxy.js @@ -16,12 +16,12 @@ '/saasbase/': '', }, }, - '/storemanagement/': { + '/ordermanage/': { target: 'http://localhost:5248', changeOrigin: true, secure: false, //关闭证书验证 pathRewrite: { - '/storemanagement/': '', + '/ordermanage/': '', }, }, // Nginx发布的时候需要配置 diff --git a/src/app.jsx b/src/app.jsx index 898841b..5051afc 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -368,7 +368,7 @@ export async function getInitialState() { var tempMenu = await queryMenuData(); //创建菜单 //await syncMenus(tempMenu); - if (true) { + if (!isDev) { var data = await dymicMenus(currentUser.data.id); tempMenu = data.data; } diff --git a/src/pages/order/orderflow/service.js b/src/pages/order/orderflow/service.js index 4a92239..b2da263 100644 --- a/src/pages/order/orderflow/service.js +++ b/src/pages/order/orderflow/service.js @@ -7,13 +7,25 @@ export default { /** 获取订单流水信息*/ orderList(data) { data.isreport = true; - return request(`/kitchen/api/order/order-detail-flow`, { + return request(`/ordermanage/api/Order/PostDetail`, { method: 'Post', data: data, // params: { ...params }, // ...(options || {}), }); - }, + },5 + + + + + + + + + + + + /** * 查询店铺分类(设备类型)信息 */