From 6442a2d83f4bd0707861f3bfc927d58396653491 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Thu, 9 Jul 2026 15:38:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E8=AF=AF=E5=8A=A0?= =?UTF-8?q?=E7=9A=84=20nginx=20=E6=8C=87=E5=BC=95=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=B8=8E=E5=A4=9A=E4=BD=99=E8=B7=AF=E7=94=B1=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 指引页按轨迹模式走 RBAC 菜单 + vite dev 白名单即可,不再单独改 nginx;top-nav 仅保留 guide 路径映射。 Co-authored-by: Cursor --- nginx-default.conf | 38 -------------------------------- nginx-docker.conf | 2 -- src/components/top-nav/index.vue | 4 ---- 3 files changed, 44 deletions(-) diff --git a/nginx-default.conf b/nginx-default.conf index 10f58f8..dd0e5ba 100644 --- a/nginx-default.conf +++ b/nginx-default.conf @@ -104,9 +104,6 @@ server { } # ============ 订单前端路由(^~ 须比下方 /order/ API 正则代理更优先)============ - location ^~ /order/guide { - try_files /index.html =200; - } location ^~ /order/priceCheck { try_files /index.html =200; } @@ -123,41 +120,6 @@ server { try_files /index.html =200; } - # ============ 渠道前端路由(^~ 须比下方 /channel/ API 正则代理更优先)============ - location ^~ /channel/guide { - try_files /index.html =200; - } - location ^~ /channel/salesProducts { - try_files /index.html =200; - } - location ^~ /channel/serviceChannels { - try_files /index.html =200; - } - location ^~ /channel/priceArea { - try_files /index.html =200; - } - location ^~ /channel/blacklist { - try_files /index.html =200; - } - location ^~ /channel/remoteZones { - try_files /index.html =200; - } - location ^~ /channel/weightRules { - try_files /index.html =200; - } - location ^~ /channel/weightRounding { - try_files /index.html =200; - } - location ^~ /channel/autoTrigger { - try_files /index.html =200; - } - location ^~ /channel/issueTemplate { - try_files /index.html =200; - } - location ^~ /channel/labelDesign { - try_files /index.html =200; - } - # ============ 系统管理前端路由(^~ 须比下方 /system/ API 正则代理更优先)============ # 页面路径为 camelCase;API 为 kebab(如 /system/dict/list、/system/batch-email/…),勿用宽泛前缀匹配 dict location = /system/dict { diff --git a/nginx-docker.conf b/nginx-docker.conf index 2b2c766..ef23466 100644 --- a/nginx-docker.conf +++ b/nginx-docker.conf @@ -41,14 +41,12 @@ server { location ^~ /operation/printLabel { try_files /index.html =200; } # 订单前端路由(^~ 须比下方 /order/ API 正则代理更优先) - location ^~ /order/guide { try_files /index.html =200; } location ^~ /order/priceCheck { try_files /index.html =200; } location ^~ /order/placeOrder { try_files /index.html =200; } location ^~ /order/myOrders { try_files /index.html =200; } location ^~ /order/batchJobs { try_files /index.html =200; } location ^~ /order/templateMapping { try_files /index.html =200; } - location ^~ /channel/guide { try_files /index.html =200; } location ^~ /channel/salesProducts { try_files /index.html =200; } location ^~ /channel/serviceChannels { try_files /index.html =200; } location ^~ /channel/priceArea { try_files /index.html =200; } diff --git a/src/components/top-nav/index.vue b/src/components/top-nav/index.vue index 56cdf3d..2399eca 100644 --- a/src/components/top-nav/index.vue +++ b/src/components/top-nav/index.vue @@ -585,10 +585,6 @@ const pathToRouteNameMap: Record = { '/channel/issueTemplate': 'IssueTemplate', '/channel/guide': 'ChannelGuide', '/order/guide': 'OrderGuide', - '/order/priceCheck': 'PriceCheck', - '/order/placeOrder': 'PlaceOrder', - '/order/myOrders': 'MyOrders', - '/order/batchJobs': 'OrderBatchJobs', // Track 相关路由 '/track/guide': 'TrackGuide', '/track/order': 'TrackOrder',